Class: Kount::RIS::Address

Inherits:
Base
  • Object
show all
Defined in:
app/models/kount/ris/address.rb

Constant Summary

Constants inherited from Base

Base::COUNTRY_CODES

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#address_1Object

Returns the value of attribute address_1.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def address_1
  @address_1
end

#address_2Object

Returns the value of attribute address_2.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def address_2
  @address_2
end

#cityObject

Returns the value of attribute city.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def city
  @city
end

#country_codeObject

Returns the value of attribute country_code.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def country_code
  @country_code
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def phone
  @phone
end

#postal_codeObject

Returns the value of attribute postal_code.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def postal_code
  @postal_code
end

#premiseObject

Returns the value of attribute premise.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def premise
  @premise
end

#regionObject

Returns the value of attribute region.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def region
  @region
end

#thoroughfareObject

Returns the value of attribute thoroughfare.



4
5
6
# File 'app/models/kount/ris/address.rb', line 4

def thoroughfare
  @thoroughfare
end

Instance Method Details

#to_hObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/kount/ris/address.rb', line 16

def to_h
  {
    address_1: address_1,
    address_2: address_2,
    premise: premise,
    thoroughfare: thoroughfare,
    city: city,
    region: region,
    postal_code: postal_code,
    country_code: country_code,
    phone: phone,
  }
end