Class: Shoppr::GenericResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/shoppr/generic_response.rb

Instance Method Summary collapse

Constructor Details

#initializeGenericResponse

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