Class: STRIKEIRON_ADDRESS_VERIFICATION::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject

Returns the value of attribute city.



8
9
10
# File 'lib/strikeiron_address_verification/address.rb', line 8

def city
  @city
end

#errorObject

Returns the value of attribute error.



8
9
10
# File 'lib/strikeiron_address_verification/address.rb', line 8

def error
  @error
end

#is_validObject

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_timeoutObject

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

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#record_typeObject

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

#requestObject

Returns the value of attribute request.



8
9
10
# File 'lib/strikeiron_address_verification/address.rb', line 8

def request
  @request
end

#responseObject

Returns the value of attribute response.



8
9
10
# File 'lib/strikeiron_address_verification/address.rb', line 8

def response
  @response
end

#stateObject

Returns the value of attribute state.



8
9
10
# File 'lib/strikeiron_address_verification/address.rb', line 8

def state
  @state
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/strikeiron_address_verification/address.rb', line 8

def status
  @status
end

#status_msgObject

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_addressObject

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_2Object

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

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

#zip_codeObject

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