Class: Komoju::Payouts

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

Overview

Payout Resource

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Payouts

Returns a new instance of Payouts.



233
234
235
# File 'lib/komoju/client.rb', line 233

def initialize(client)
  @client = client
end

Instance Method Details

#list(collection_options = {}) ⇒ Object

List payouts

Parameters:

  • collection_options:

    additional collection options to pass with the request



240
241
242
# File 'lib/komoju/client.rb', line 240

def list(collection_options = {})
  @client.payouts.list(collection_options)
end

#payout_items(payouts_id, collection_options = {}) ⇒ Object

List payout items

Parameters:

  • payouts_id:

    A unique identifier for a payout.

  • collection_options:

    additional collection options to pass with the request



255
256
257
# File 'lib/komoju/client.rb', line 255

def payout_items(payouts_id, collection_options = {})
  @client.payouts.payout_items(payouts_id, collection_options)
end

#show(payouts_id) ⇒ Object

Show a payout

Parameters:

  • payouts_id:

    A unique identifier for a payout.



247
248
249
# File 'lib/komoju/client.rb', line 247

def show(payouts_id)
  @client.payouts.show(payouts_id)
end