Class: Voucherify::Service::Consents
- Inherits:
-
Object
- Object
- Voucherify::Service::Consents
- Defined in:
- lib/voucherify/service/consents.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(client) ⇒ Consents
constructor
A new instance of Consents.
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
#client ⇒ Object (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
#get ⇒ Object
12 13 14 |
# File 'lib/voucherify/service/consents.rb', line 12 def get() @client.get('/consents') end |