Class: Simplewoo::Client
- Inherits:
-
Object
- Object
- Simplewoo::Client
- Includes:
- Authentication, Entity, Match, Personality, Root, Slider, Tag, User, Connection, Request
- Defined in:
- lib/simplewoo/client.rb,
lib/simplewoo/client/tag.rb,
lib/simplewoo/client/root.rb,
lib/simplewoo/client/user.rb,
lib/simplewoo/client/match.rb,
lib/simplewoo/client/entity.rb,
lib/simplewoo/client/slider.rb,
lib/simplewoo/client/personality.rb
Defined Under Namespace
Modules: Entity, Match, Personality, Root, Slider, Tag, User
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Entity
Methods included from Tag
Methods included from Personality
#personality_for_slider, #reset
Methods included from Match
Methods included from Slider
Methods included from User
#create_user, #me, #update_user
Methods included from Root
Methods included from Request
#delete, #get, #last_response, #post, #put
Methods included from Connection
Methods included from Authentication
#api_token, #authenticate, #authenticated?, #basic_authenticated?, #token_authenticated?
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 19 |
# File 'lib/simplewoo/client.rb', line 13 def initialize( = {}) = Simplewoo..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |