Class: Azure::Profiles::Latest::Commerce::Mgmt::CommerceClass
- Inherits:
-
Object
- Object
- Azure::Profiles::Latest::Commerce::Mgmt::CommerceClass
- Defined in:
- lib/latest/modules/commerce_profile_module.rb
Overview
Commerce
Defined Under Namespace
Classes: ModelClasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#rate_card ⇒ Object
readonly
Returns the value of attribute rate_card.
-
#usage_aggregates ⇒ Object
readonly
Returns the value of attribute usage_aggregates.
Instance Method Summary collapse
-
#initialize(configurable, base_url = nil, options = nil) ⇒ CommerceClass
constructor
A new instance of CommerceClass.
Constructor Details
#initialize(configurable, base_url = nil, options = nil) ⇒ CommerceClass
Returns a new instance of CommerceClass.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 33 def initialize(configurable, base_url=nil, =nil) @configurable, @base_url, = configurable, base_url, client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, ) if(client_0.respond_to?(:subscription_id)) client_0.subscription_id = configurable.subscription_id end @usage_aggregates = client_0.usage_aggregates @rate_card = client_0.rate_card @model_classes = ModelClasses.new end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
31 32 33 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 31 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
31 32 33 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 31 def configurable @configurable end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
31 32 33 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 31 def model_classes @model_classes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
31 32 33 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 31 def end |
#rate_card ⇒ Object (readonly)
Returns the value of attribute rate_card.
31 32 33 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 31 def rate_card @rate_card end |
#usage_aggregates ⇒ Object (readonly)
Returns the value of attribute usage_aggregates.
31 32 33 |
# File 'lib/latest/modules/commerce_profile_module.rb', line 31 def usage_aggregates @usage_aggregates end |