Class: SiebelDonations::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

find, get, #initialize

Constructor Details

This class inherits a constructor from SiebelDonations::Base

Instance Attribute Details

#address1Object (readonly)

Returns the value of attribute address1.



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

def address1
  @address1
end

#address2Object (readonly)

Returns the value of attribute address2.



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

def address2
  @address2
end

#address3Object (readonly)

Returns the value of attribute address3.



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

def address3
  @address3
end

#address4Object (readonly)

Returns the value of attribute address4.



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

def address4
  @address4
end

#cityObject (readonly)

Returns the value of attribute city.



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

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



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

def country
  @country
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#primaryObject (readonly)

Returns the value of attribute primary.



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

def primary
  @primary
end

#seasonalObject (readonly)

Returns the value of attribute seasonal.



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

def seasonal
  @seasonal
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end

#zipObject (readonly)

Returns the value of attribute zip.



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

def zip
  @zip
end

Instance Method Details

#typeObject



8
9
10
11
12
13
14
15
16
# File 'lib/siebel_donations/address.rb', line 8

def type
  case @type.to_s.downcase
  when '', 'mailing address', 'ship to', 'ma', 'mailng', 'm', 'billing', 'mailin', 'mailig',
       'mailing', 'maling', 'mailign', 'mailingf', 'naukubg', 'maiiling', 'shipping'
    'Mailing'
  else
    @type
  end
end