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.



379
380
381
# File 'lib/sendly/enterprise.rb', line 379

def initialize(client)
  @client = client
end

Instance Method Details

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



383
384
385
386
387
388
389
390
# File 'lib/sendly/enterprise.rb', line 383

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