Class: Sendly::EnterpriseBillingSubResource

Inherits:
Object
  • Object
show all
Defined in:
lib/sendly/enterprise.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ EnterpriseBillingSubResource

Returns a new instance of EnterpriseBillingSubResource.



327
328
329
# File 'lib/sendly/enterprise.rb', line 327

def initialize(client)
  @client = client
end

Instance Method Details

#get_breakdown(period: nil, page: nil, limit: nil) ⇒ Object



331
332
333
334
335
336
337
338
# File 'lib/sendly/enterprise.rb', line 331

def get_breakdown(period: nil, page: nil, limit: nil)
  params = {}
  params[:period] = period if period
  params[:page] = page if page
  params[:limit] = limit if limit

  @client.get("/enterprise/billing/workspace-breakdown", params)
end