Class: NasaApi::ResponseHandler::TechPort
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::TechPort
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
-
#projects ⇒ Object
Returns the value of attribute projects.
-
#response ⇒ Object
Returns the value of attribute response.
-
#totalCount ⇒ Object
Returns the value of attribute totalCount.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ TechPort
constructor
A new instance of TechPort.
Constructor Details
#initialize(response = {}) ⇒ TechPort
Returns a new instance of TechPort.
141 142 143 144 145 146 |
# File 'lib/nasa_api/response_handler.rb', line 141 def initialize(response = {}) @response = response @totalCount = response['totalCount'] if response['totalCount'] @project = response['project'] if response['project'] @projects = response['projects'] if response['projects'] end |
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
139 140 141 |
# File 'lib/nasa_api/response_handler.rb', line 139 def project @project end |
#projects ⇒ Object
Returns the value of attribute projects.
139 140 141 |
# File 'lib/nasa_api/response_handler.rb', line 139 def projects @projects end |
#response ⇒ Object
Returns the value of attribute response.
139 140 141 |
# File 'lib/nasa_api/response_handler.rb', line 139 def response @response end |
#totalCount ⇒ Object
Returns the value of attribute totalCount.
139 140 141 |
# File 'lib/nasa_api/response_handler.rb', line 139 def totalCount @totalCount end |