Class: Bcash::Api::AddressRequest

Inherits:
BaseRequest show all
Defined in:
lib/bcash/api/request/address_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def address
  @address
end

#cityObject

Returns the value of attribute city.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def city
  @city
end

#complementObject

Returns the value of attribute complement.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def complement
  @complement
end

#neighborhoodObject

Returns the value of attribute neighborhood.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def neighborhood
  @neighborhood
end

#numberObject

Returns the value of attribute number.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def number
  @number
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def state
  @state
end

#zip_codeObject Also known as: zipCode

Returns the value of attribute zip_code.



3
4
5
# File 'lib/bcash/api/request/address_request.rb', line 3

def zip_code
  @zip_code
end

Instance Method Details

#attributesObject



12
13
14
# File 'lib/bcash/api/request/address_request.rb', line 12

def attributes
  { 'address' => address, 'number' => number, 'complement' => complement, 'neighborhood' => neighborhood, 'city' => city, 'state' => state, 'zipCode' => zip_code }
end