Skip to content

Commit

Permalink
feat: 🎸 TwitterRestApi を簡単に使えるようにするためにデフォルト account_key を明示 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikukyugamer authored Jun 23, 2022
1 parent 0fe79a1 commit 1af0300
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/lib/twitter_rest_api.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
class TwitterRestApi
# account_key は シンボル で指定する
def self.client(account_key: nil)
return if account_key.nil?

def self.client(account_key: :ayy)
credentials = convert_account_key_to_credentials(account_key)
return if credentials.nil?

Expand Down

0 comments on commit 1af0300

Please sign in to comment.