Class: Arena::Client
- Inherits:
-
Object
- Object
- Arena::Client
- Includes:
- API, Configurable, HTTParty
- Defined in:
- lib/arena/client.rb
Instance Attribute Summary
Attributes included from Configurable
#access_token, #api_version, #application_id, #application_secret, #auth_token, #base_domain, #expires_in, #use_caching
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from API
#account, #account_channels, #block, #block_comments, #channel, #channel_add_block, #channel_channels, #channel_remove_block, #channel_thumb, #channel_toggle_block_selection, #channels, #feed, #search, #settings, #user, #user_channels
Methods included from Configurable
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 |
# File 'lib/arena/client.rb', line 13 def initialize(={}) Arena::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || Arena.instance_variable_get(:"@#{key}")) end end |