Class: Tweetkit::Client
- Inherits:
-
Object
- Object
- Tweetkit::Client
- Includes:
- Tweets, Connection
- Defined in:
- lib/tweetkit/client.rb,
lib/tweetkit/client/tweets.rb
Defined Under Namespace
Modules: Tweets
Constant Summary
Constants included from Connection
Tweetkit::Connection::BASE_URL
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#access_token_secret ⇒ Object
Returns the value of attribute access_token_secret.
-
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#email ⇒ Object
Returns the value of attribute email.
-
#password ⇒ Object
Returns the value of attribute password.
Attributes included from Connection
#previous_query, #previous_url
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from Tweets
#delete_tweet, #post_tweet, #search, #tweet, #tweets
Methods included from Connection
#build_expansions, #build_fields, #delete, #get, #parse_query_and_convenience_headers, #post, #put, #request
Methods included from Auth
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 |
# File 'lib/tweetkit/client.rb', line 11 def initialize( = {}) .each do |key, value| instance_variable_set(:"@#{key}", value) end yield self if block_given? end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def access_token @access_token end |
#access_token_secret ⇒ Object
Returns the value of attribute access_token_secret.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def access_token_secret @access_token_secret end |
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def bearer_token @bearer_token end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def consumer_secret @consumer_secret end |
#email ⇒ Object
Returns the value of attribute email.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def email @email end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/tweetkit/client.rb', line 9 def password @password end |