Class: Emvoicer::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/emvoicer/client.rb

Constant Summary collapse

ATTRIBUTES =
[
  :id,
  :name,
  :address_1,
  :address_2,
  :city,
  :zip_code,
  :country,
  :phone
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service, attributes) ⇒ Client

Returns a new instance of Client.



16
17
18
19
# File 'lib/emvoicer/client.rb', line 16

def initialize(service, attributes)
  @service = service
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



14
15
16
# File 'lib/emvoicer/client.rb', line 14

def attributes
  @attributes
end

#serviceObject (readonly)

Returns the value of attribute service.



14
15
16
# File 'lib/emvoicer/client.rb', line 14

def service
  @service
end