Class: FedexRateGetter::Formatter::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/fedex_rate_getter/formatter/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

@Attribute hash format extracted directly from fedex api xml @Attribute json format



10
11
12
13
# File 'lib/fedex_rate_getter/formatter/response.rb', line 10

def initialize(response)
	@hashed = Hash.from_xml(response)
	@response = transform_response
end

Instance Attribute Details

#hashedObject

Returns the value of attribute hashed.



6
7
8
# File 'lib/fedex_rate_getter/formatter/response.rb', line 6

def hashed
  @hashed
end

#responseObject

Returns the value of attribute response.



6
7
8
# File 'lib/fedex_rate_getter/formatter/response.rb', line 6

def response
  @response
end