Class: Twilio::REST::Marketplace::V1::InstalledAddOnContext::InstalledAddOnUsageList::MarketplaceV1InstalledAddOnInstalledAddOnUsage
- Inherits:
-
Object
- Object
- Twilio::REST::Marketplace::V1::InstalledAddOnContext::InstalledAddOnUsageList::MarketplaceV1InstalledAddOnInstalledAddOnUsage
- Defined in:
- lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ MarketplaceV1InstalledAddOnInstalledAddOnUsage
constructor
A new instance of MarketplaceV1InstalledAddOnInstalledAddOnUsage.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ MarketplaceV1InstalledAddOnInstalledAddOnUsage
Returns a new instance of MarketplaceV1InstalledAddOnInstalledAddOnUsage.
28 29 30 31 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 28 def initialize(payload) @total_submitted = payload["total_submitted"] @billable_items = payload["billable_items"] end |
Instance Attribute Details
#billable_items ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 27 def billable_items @billable_items end |
#total_submitted ⇒ Object
27 28 29 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 27 def total_submitted @total_submitted end |
Instance Method Details
#to_json(options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 32 def to_json( = {}) { "total_submitted": @total_submitted, "billable_items": @billable_items, }.to_json() end |