Class: Postino::Form::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/postino/form/address.rb', line 4

def city
  @city
end

#stateObject

Returns the value of attribute state.



4
5
6
# File 'lib/postino/form/address.rb', line 4

def state
  @state
end

#streetObject

Returns the value of attribute street.



4
5
6
# File 'lib/postino/form/address.rb', line 4

def street
  @street
end

#zip_codeObject

Returns the value of attribute zip_code.



4
5
6
# File 'lib/postino/form/address.rb', line 4

def zip_code
  @zip_code
end

Instance Method Details

#locationObject



6
7
8
# File 'lib/postino/form/address.rb', line 6

def location
  "#{city} (#{state})"
end