Class: NasaApi::ResponseHandler::TechTransfer
- Inherits:
-
Object
- Object
- NasaApi::ResponseHandler::TechTransfer
- Defined in:
- lib/nasa_api/response_handler.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#page ⇒ Object
Returns the value of attribute page.
-
#perpage ⇒ Object
Returns the value of attribute perpage.
-
#response ⇒ Object
Returns the value of attribute response.
-
#results ⇒ Object
Returns the value of attribute results.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ TechTransfer
constructor
A new instance of TechTransfer.
Constructor Details
#initialize(response = {}) ⇒ TechTransfer
Returns a new instance of TechTransfer.
128 129 130 131 132 133 134 135 |
# File 'lib/nasa_api/response_handler.rb', line 128 def initialize(response = {}) @response = response @results = response['results'] @count = response['count'] @total = response['total'] @perpage = response['perpage'] @page = response['page'] end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
126 127 128 |
# File 'lib/nasa_api/response_handler.rb', line 126 def count @count end |
#page ⇒ Object
Returns the value of attribute page.
126 127 128 |
# File 'lib/nasa_api/response_handler.rb', line 126 def page @page end |
#perpage ⇒ Object
Returns the value of attribute perpage.
126 127 128 |
# File 'lib/nasa_api/response_handler.rb', line 126 def perpage @perpage end |
#response ⇒ Object
Returns the value of attribute response.
126 127 128 |
# File 'lib/nasa_api/response_handler.rb', line 126 def response @response end |
#results ⇒ Object
Returns the value of attribute results.
126 127 128 |
# File 'lib/nasa_api/response_handler.rb', line 126 def results @results end |
#total ⇒ Object
Returns the value of attribute total.
126 127 128 |
# File 'lib/nasa_api/response_handler.rb', line 126 def total @total end |