Class: Brickset::Client
- Inherits:
-
Object
- Object
- Brickset::Client
- Includes:
- ActiveModel::Validations, Api::Auth, Api::Collection::Advanced, Api::Collection::Minifig, Api::Collection::Set, Api::Set, HTTParty
- Defined in:
- lib/brickset/client.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Api::Collection::Advanced
#collection_detail, #collection_detail_conditions
Methods included from Api::Collection::Minifig
#minifig_collection, #update_minifig_collection
Methods included from Api::Collection::Set
#collection_totals, #update_collection, #update_collection_number_owned, #update_collection_owned, #update_collection_user_notes, #update_collection_wanted, #update_user_rating, #user_notes
Methods included from Api::Set
#additional_images, #instructions, #recently_updated_sets, #reviews, #set, #sets, #subthemes, #subthemes_for_user, #themes, #themes_for_user, #years, #years_for_user
Methods included from Api::Auth
#login, #valid_api_key?, #valid_token?
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
16 17 18 |
# File 'lib/brickset/client.rb', line 16 def initialize( = {}) @token = [:token] if .key?(:token) end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
14 15 16 |
# File 'lib/brickset/client.rb', line 14 def token @token end |