Class: VoiceML::PricingInboundCallPrice
- Inherits:
-
Object
- Object
- VoiceML::PricingInboundCallPrice
- Defined in:
- lib/voiceml/models/pricing.rb
Overview
--- Price leaves ---------------------------------------------------------
Constant Summary collapse
- ATTRIBUTES =
%w[base_price current_price number_type].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ PricingInboundCallPrice
constructor
A new instance of PricingInboundCallPrice.
Constructor Details
#initialize(attrs = {}) ⇒ PricingInboundCallPrice
Returns a new instance of PricingInboundCallPrice.
19 20 21 |
# File 'lib/voiceml/models/pricing.rb', line 19 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
22 |
# File 'lib/voiceml/models/pricing.rb', line 22 def self.from_hash(h); h.nil? ? nil : new(h); end |