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.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from Tweets
Methods included from Connection
#auth_token, #build_expansions, #build_fields, #get, #parse_query_and_convenience_headers, #request
Methods included from Auth
#basic_auth?, #bearer_auth?, #token_auth?
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 |
# File 'lib/tweetkit/client.rb', line 12 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.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def access_token @access_token end |
#access_token_secret ⇒ Object
Returns the value of attribute access_token_secret.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def access_token_secret @access_token_secret end |
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def bearer_token @bearer_token end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def consumer_secret @consumer_secret end |
#email ⇒ Object
Returns the value of attribute email.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def email @email end |
#password ⇒ Object
Returns the value of attribute password.
10 11 12 |
# File 'lib/tweetkit/client.rb', line 10 def password @password end |