Class: Neows::Models::BaseModel
- Inherits:
-
Object
- Object
- Neows::Models::BaseModel
- Defined in:
- lib/neows/models/base_model.rb
Direct Known Subclasses
Browse, CloseApproachData, EstimatedDiameter, EstimatedDiameterMinMax, Feed, Links, MissDistance, NearEarthObject, OrbitalData, Page, RelativeVelocity, SelfLink, Stat
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BaseModel
constructor
A new instance of BaseModel.
Constructor Details
#initialize(attributes = {}) ⇒ BaseModel
Returns a new instance of BaseModel.
10 11 12 13 |
# File 'lib/neows/models/base_model.rb', line 10 def initialize(attributes = {}) @client = attributes.delete :client super(attributes) end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
8 9 10 |
# File 'lib/neows/models/base_model.rb', line 8 def client @client end |