Class: STRIKEIRON_ADDRESS_VERIFICATION::Address
- Inherits:
-
Object
- Object
- STRIKEIRON_ADDRESS_VERIFICATION::Address
- Defined in:
- lib/strikeiron_address_verification/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#error ⇒ Object
Returns the value of attribute error.
-
#is_valid ⇒ Object
Returns the value of attribute is_valid.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#password ⇒ Object
Returns the value of attribute password.
-
#record_type ⇒ Object
Returns the value of attribute record_type.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
-
#state ⇒ Object
Returns the value of attribute state.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_msg ⇒ Object
Returns the value of attribute status_msg.
-
#street_address ⇒ Object
Returns the value of attribute street_address.
-
#street_address_2 ⇒ Object
Returns the value of attribute street_address_2.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
-
#zip_code ⇒ Object
Returns the value of attribute zip_code.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(args = {}) ⇒ Address
Returns a new instance of Address.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/strikeiron_address_verification/address.rb', line 9 def initialize(args={}) @username = STRIKEIRON_ADDRESS_VERIFICATION.username @password = STRIKEIRON_ADDRESS_VERIFICATION.password @url = STRIKEIRON_ADDRESS_VERIFICATION.url @timeout = STRIKEIRON_ADDRESS_VERIFICATION.timeout.to_i @open_timeout = STRIKEIRON_ADDRESS_VERIFICATION.open_timeout.to_i @street_address = @street_address_2 = @city = @state = @zip_code = @status = @status_msg = @request = @response = @record_type = @error = '' @is_valid = false @street_address = args[:street_address] if args[:street_address] @street_address_2 = args[:street_address_2] if args[:street_address_2] @city = args[:city] if args[:city] @state = args[:state] if args[:state] @zip_code = args[:zip_code] if args[:zip_code] process end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def city @city end |
#error ⇒ Object
Returns the value of attribute error.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def error @error end |
#is_valid ⇒ Object
Returns the value of attribute is_valid.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def is_valid @is_valid end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
7 8 9 |
# File 'lib/strikeiron_address_verification/address.rb', line 7 def open_timeout @open_timeout end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/strikeiron_address_verification/address.rb', line 7 def password @password end |
#record_type ⇒ Object
Returns the value of attribute record_type.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def record_type @record_type end |
#request ⇒ Object
Returns the value of attribute request.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def response @response end |
#state ⇒ Object
Returns the value of attribute state.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def state @state end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def status @status end |
#status_msg ⇒ Object
Returns the value of attribute status_msg.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def status_msg @status_msg end |
#street_address ⇒ Object
Returns the value of attribute street_address.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def street_address @street_address end |
#street_address_2 ⇒ Object
Returns the value of attribute street_address_2.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def street_address_2 @street_address_2 end |
#timeout ⇒ Object
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/strikeiron_address_verification/address.rb', line 7 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/strikeiron_address_verification/address.rb', line 7 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
7 8 9 |
# File 'lib/strikeiron_address_verification/address.rb', line 7 def username @username end |
#zip_code ⇒ Object
Returns the value of attribute zip_code.
8 9 10 |
# File 'lib/strikeiron_address_verification/address.rb', line 8 def zip_code @zip_code end |