Class: Shoppr::GenericResponse
- Inherits:
-
Object
- Object
- Shoppr::GenericResponse
- Defined in:
- lib/shoppr/generic_response.rb
Instance Method Summary collapse
-
#initialize ⇒ GenericResponse
constructor
A new instance of GenericResponse.
Constructor Details
#initialize ⇒ GenericResponse
Returns a new instance of GenericResponse.
4 5 6 7 8 9 10 11 |
# File 'lib/shoppr/generic_response.rb', line 4 def initialize() response = Shoppr::Client.get('/') h = Hashie::Mash.new(response["GenericResponse"]) Shoppr.map_mash_attrs(self, h) @server_detail = ServerDetail.new(self.server_detail) end |