Class: Voucherify::Service::Consents

Inherits:
Object
  • Object
show all
Defined in:
lib/voucherify/service/consents.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Consents

Returns a new instance of Consents.



8
9
10
# File 'lib/voucherify/service/consents.rb', line 8

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/voucherify/service/consents.rb', line 6

def client
  @client
end

Instance Method Details

#getObject



12
13
14
# File 'lib/voucherify/service/consents.rb', line 12

def get()
  @client.get('/consents')
end