Class: D3api::BaseModel
- Inherits:
-
Object
- Object
- D3api::BaseModel
- Includes:
- Request
- Defined in:
- lib/d3api/base_model.rb
Instance Method Summary collapse
-
#initialize(values) ⇒ BaseModel
constructor
A new instance of BaseModel.
Methods included from Request
Methods included from Connection
Constructor Details
#initialize(values) ⇒ BaseModel
Returns a new instance of BaseModel.
5 6 7 |
# File 'lib/d3api/base_model.rb', line 5 def initialize(values) JSON.parse(values) end |