Class: Tweetkit::Client

Inherits:
Object
  • Object
show all
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

Attributes included from Connection

#previous_query, #previous_url

Instance Method Summary collapse

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

#bearer_auth?, #token_auth?

Constructor Details

#initialize(options = {}) {|_self| ... } ⇒ Client

Returns a new instance of Client.

Yields:

  • (_self)

Yield Parameters:



11
12
13
14
15
16
# File 'lib/tweetkit/client.rb', line 11

def initialize(options = {})
  options.each do |key, value|
    instance_variable_set(:"@#{key}", value)
  end
  yield self if block_given?
end

Instance Attribute Details

#access_tokenObject

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_secretObject

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_tokenObject

Returns the value of attribute bearer_token.



9
10
11
# File 'lib/tweetkit/client.rb', line 9

def bearer_token
  @bearer_token
end

#consumer_keyObject

Returns the value of attribute consumer_key.



9
10
11
# File 'lib/tweetkit/client.rb', line 9

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



9
10
11
# File 'lib/tweetkit/client.rb', line 9

def consumer_secret
  @consumer_secret
end

#emailObject

Returns the value of attribute email.



9
10
11
# File 'lib/tweetkit/client.rb', line 9

def email
  @email
end

#passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/tweetkit/client.rb', line 9

def password
  @password
end