Class: Arena::Client

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

Methods included from API

#account, #account_channels, #block, #block_comments, #channel, #channel_add_block, #channel_channels, #channel_feed, #channel_remove_block, #channel_thumb, #channel_toggle_block_selection, #channels, #feed, #search, #settings, #user, #user_channels, #user_feed

Methods included from Configurable

#configure, keys, #reset!

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(options={})
  Arena::Configurable.keys.each do |key|
    instance_variable_set(:"@#{key}", options[key] || Arena.instance_variable_get(:"@#{key}"))
  end
end