Class: VoiceML::PricingOutboundPrefixPriceWithOrigin
- Inherits:
-
Object
- Object
- VoiceML::PricingOutboundPrefixPriceWithOrigin
- Defined in:
- lib/voiceml/models/pricing.rb
Instance Attribute Summary collapse
-
#base_price ⇒ Object
readonly
Returns the value of attribute base_price.
-
#current_price ⇒ Object
readonly
Returns the value of attribute current_price.
-
#destination_prefixes ⇒ Object
readonly
Returns the value of attribute destination_prefixes.
-
#friendly_name ⇒ Object
readonly
Returns the value of attribute friendly_name.
-
#origination_prefixes ⇒ Object
readonly
Returns the value of attribute origination_prefixes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ PricingOutboundPrefixPriceWithOrigin
constructor
A new instance of PricingOutboundPrefixPriceWithOrigin.
Constructor Details
#initialize(attrs = {}) ⇒ PricingOutboundPrefixPriceWithOrigin
Returns a new instance of PricingOutboundPrefixPriceWithOrigin.
57 58 59 60 61 62 63 |
# File 'lib/voiceml/models/pricing.rb', line 57 def initialize(attrs = {}) @origination_prefixes = attrs['origination_prefixes'] || attrs[:origination_prefixes] || [] @destination_prefixes = attrs['destination_prefixes'] || attrs[:destination_prefixes] || [] @base_price = attrs['base_price'] || attrs[:base_price] @current_price = attrs['current_price'] || attrs[:current_price] @friendly_name = attrs['friendly_name'] || attrs[:friendly_name] end |
Instance Attribute Details
#base_price ⇒ Object (readonly)
Returns the value of attribute base_price.
56 57 58 |
# File 'lib/voiceml/models/pricing.rb', line 56 def base_price @base_price end |
#current_price ⇒ Object (readonly)
Returns the value of attribute current_price.
56 57 58 |
# File 'lib/voiceml/models/pricing.rb', line 56 def current_price @current_price end |
#destination_prefixes ⇒ Object (readonly)
Returns the value of attribute destination_prefixes.
56 57 58 |
# File 'lib/voiceml/models/pricing.rb', line 56 def destination_prefixes @destination_prefixes end |
#friendly_name ⇒ Object (readonly)
Returns the value of attribute friendly_name.
56 57 58 |
# File 'lib/voiceml/models/pricing.rb', line 56 def friendly_name @friendly_name end |
#origination_prefixes ⇒ Object (readonly)
Returns the value of attribute origination_prefixes.
56 57 58 |
# File 'lib/voiceml/models/pricing.rb', line 56 def origination_prefixes @origination_prefixes end |
Class Method Details
.from_hash(h) ⇒ Object
64 |
# File 'lib/voiceml/models/pricing.rb', line 64 def self.from_hash(h); h.nil? ? nil : new(h); end |