Class: Twilio::REST::Marketplace::V1::InstalledAddOnContext::InstalledAddOnUsageInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Marketplace::V1::InstalledAddOnContext::InstalledAddOnUsageInstance
- Defined in:
- lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb
Instance Method Summary collapse
- #billable_items ⇒ Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>
-
#initialize(version, payload, installed_add_on_sid: nil) ⇒ InstalledAddOnUsageInstance
constructor
Initialize the InstalledAddOnUsageInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#total_submitted ⇒ Float
Total amount in local currency that was billed in this request.
Constructor Details
#initialize(version, payload, installed_add_on_sid: nil) ⇒ InstalledAddOnUsageInstance
Initialize the InstalledAddOnUsageInstance
209 210 211 212 213 214 215 216 217 218 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 209 def initialize(version, payload , installed_add_on_sid: nil) super(version) # Marshaled Properties @properties = { 'total_submitted' => payload['total_submitted'], 'billable_items' => payload['billable_items'], } end |
Instance Method Details
#billable_items ⇒ Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>
229 230 231 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 229 def billable_items @properties['billable_items'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
241 242 243 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 241 def inspect "<Twilio.Marketplace.V1.InstalledAddOnUsageInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
235 236 237 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 235 def to_s "<Twilio.Marketplace.V1.InstalledAddOnUsageInstance>" end |
#total_submitted ⇒ Float
Returns Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
223 224 225 |
# File 'lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb', line 223 def total_submitted @properties['total_submitted'] end |