Class: Address

Inherits:
Object
  • Object
show all
Defined in:
lib/mundipagg/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#CityObject

Returns the value of attribute City.



7
8
9
# File 'lib/mundipagg/address.rb', line 7

def City
  @City
end

#ComplementObject

Returns the value of attribute Complement.



15
16
17
# File 'lib/mundipagg/address.rb', line 15

def Complement
  @Complement
end

#CountryObject

Returns the value of attribute Country.



3
4
5
# File 'lib/mundipagg/address.rb', line 3

def Country
  @Country
end

#DistrictObject

Returns the value of attribute District.



9
10
11
# File 'lib/mundipagg/address.rb', line 9

def District
  @District
end

#NumberObject

Returns the value of attribute Number.



13
14
15
# File 'lib/mundipagg/address.rb', line 13

def Number
  @Number
end

#StateObject

Returns the value of attribute State.



5
6
7
# File 'lib/mundipagg/address.rb', line 5

def State
  @State
end

#StreetObject

Returns the value of attribute Street.



11
12
13
# File 'lib/mundipagg/address.rb', line 11

def Street
  @Street
end

#ZipCodeObject

Returns the value of attribute ZipCode.



17
18
19
# File 'lib/mundipagg/address.rb', line 17

def ZipCode
  @ZipCode
end

Instance Method Details

#to_jsonObject



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