Class: Shutterstock::Model
Constant Summary
Constants inherited from Driver
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Model
constructor
A new instance of Model.
Methods inherited from Driver
api, client, #client, #json_true?, #methods, #respond_to, #to_date
Constructor Details
#initialize(params = {}) ⇒ Model
Returns a new instance of Model.
7 8 9 10 |
# File 'lib/client/model.rb', line 7 def initialize(params={}) @hash = params @id = params["id"].to_i end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/client/model.rb', line 3 def id @id end |