Class: VoiceML::PricingCountriesList
- Inherits:
-
Object
- Object
- VoiceML::PricingCountriesList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/pricing.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#countries ⇒ Object
readonly
Returns the value of attribute countries.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ PricingCountriesList
constructor
A new instance of PricingCountriesList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ PricingCountriesList
Returns a new instance of PricingCountriesList.
101 102 103 104 |
# File 'lib/voiceml/models/pricing.rb', line 101 def initialize(hash = {}) (hash) @countries = (hash['countries'] || []).map { |h| PricingCountryRef.from_hash(h) } end |
Instance Attribute Details
#countries ⇒ Object (readonly)
Returns the value of attribute countries.
100 101 102 |
# File 'lib/voiceml/models/pricing.rb', line 100 def countries @countries end |