Class: NasaApi::ResponseHandler::TechPort

Inherits:
Object
  • Object
show all
Defined in:
lib/nasa_api/response_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#projectObject

Returns the value of attribute project.



139
140
141
# File 'lib/nasa_api/response_handler.rb', line 139

def project
  @project
end

#projectsObject

Returns the value of attribute projects.



139
140
141
# File 'lib/nasa_api/response_handler.rb', line 139

def projects
  @projects
end

#responseObject

Returns the value of attribute response.



139
140
141
# File 'lib/nasa_api/response_handler.rb', line 139

def response
  @response
end

#totalCountObject

Returns the value of attribute totalCount.



139
140
141
# File 'lib/nasa_api/response_handler.rb', line 139

def totalCount
  @totalCount
end