Class: USPS::Response::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/usps/response/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#rawObject

Returns the value of attribute raw.



3
4
5
# File 'lib/usps/response/base.rb', line 3

def raw
  @raw
end

Class Method Details

.parse(xml) ⇒ Object



6
7
8
9
10
# File 'lib/usps/response/base.rb', line 6

def parse(xml)
  response = self.new(xml)
  response.raw = xml
  response
end