Class: Twilio::REST::Pricing::V2::VoiceInstance
- Inherits:
 - 
      InstanceResource
      
        
- Object
 - InstanceResource
 - Twilio::REST::Pricing::V2::VoiceInstance
 
 
- Defined in:
 - lib/twilio-ruby/rest/pricing/v2/voice.rb
 
Instance Method Summary collapse
- 
  
    
      #initialize(version, payload)  ⇒ VoiceInstance 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initialize the VoiceInstance.
 - 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Provide a detailed, user friendly representation.
 - 
  
    
      #links  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The URLs of the related Countries and Numbers resources.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The resource name.
 - 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Provide a user friendly representation.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The absolute URL of the resource.
 
Constructor Details
#initialize(version, payload) ⇒ VoiceInstance
Initialize the VoiceInstance
      106 107 108 109 110 111  | 
    
      # File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 106 def initialize(version, payload) super(version) # Marshaled Properties @properties = {'name' => payload['name'], 'url' => payload['url'], 'links' => payload['links'], } end  | 
  
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
      139 140 141  | 
    
      # File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 139 def inspect "<Twilio.Pricing.V2.VoiceInstance>" end  | 
  
#links ⇒ String
Returns The URLs of the related Countries and Numbers resources.
      127 128 129  | 
    
      # File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 127 def links @properties['links'] end  | 
  
#name ⇒ String
Returns The resource name.
      115 116 117  | 
    
      # File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 115 def name @properties['name'] end  | 
  
#to_s ⇒ Object
Provide a user friendly representation
      133 134 135  | 
    
      # File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 133 def to_s "<Twilio.Pricing.V2.VoiceInstance>" end  | 
  
#url ⇒ String
Returns The absolute URL of the resource.
      121 122 123  | 
    
      # File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 121 def url @properties['url'] end  |