Class: Address
- Inherits:
-
Object
- Object
- Address
- Defined in:
- lib/mundipagg/address.rb
Instance Attribute Summary collapse
-
#City ⇒ Object
Returns the value of attribute City.
-
#Complement ⇒ Object
Returns the value of attribute Complement.
-
#Country ⇒ Object
Returns the value of attribute Country.
-
#District ⇒ Object
Returns the value of attribute District.
-
#Number ⇒ Object
Returns the value of attribute Number.
-
#State ⇒ Object
Returns the value of attribute State.
-
#Street ⇒ Object
Returns the value of attribute Street.
-
#ZipCode ⇒ Object
Returns the value of attribute ZipCode.
Instance Method Summary collapse
Instance Attribute Details
#City ⇒ Object
Returns the value of attribute City.
7 8 9 |
# File 'lib/mundipagg/address.rb', line 7 def City @City end |
#Complement ⇒ Object
Returns the value of attribute Complement.
15 16 17 |
# File 'lib/mundipagg/address.rb', line 15 def Complement @Complement end |
#Country ⇒ Object
Returns the value of attribute Country.
3 4 5 |
# File 'lib/mundipagg/address.rb', line 3 def Country @Country end |
#District ⇒ Object
Returns the value of attribute District.
9 10 11 |
# File 'lib/mundipagg/address.rb', line 9 def District @District end |
#Number ⇒ Object
Returns the value of attribute Number.
13 14 15 |
# File 'lib/mundipagg/address.rb', line 13 def Number @Number end |
#State ⇒ Object
Returns the value of attribute State.
5 6 7 |
# File 'lib/mundipagg/address.rb', line 5 def State @State end |
#Street ⇒ Object
Returns the value of attribute Street.
11 12 13 |
# File 'lib/mundipagg/address.rb', line 11 def Street @Street end |
#ZipCode ⇒ Object
Returns the value of attribute ZipCode.
17 18 19 |
# File 'lib/mundipagg/address.rb', line 17 def ZipCode @ZipCode end |
Instance Method Details
#to_json ⇒ Object
19 20 21 22 23 |
# File 'lib/mundipagg/address.rb', line 19 def to_json hash = {} instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash end |