Class: Simplewoo::Client

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

Methods included from Entity

#entities, #entity

Methods included from Tag

#add_tag, #tag

Methods included from Personality

#personality_for_slider, #reset

Methods included from Match

#match_for_slider

Methods included from Slider

#slider, #sliders

Methods included from User

#create_user, #me, #update_user

Methods included from Root

#root

Methods included from Request

#delete, #get, #last_response, #post, #put

Methods included from Connection

#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(options = {})
  options = Simplewoo.options.merge(options)

  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end