Class: Twilio::REST::Microvisor::V1::AccountConfigContext
- Inherits:
- 
      InstanceContext
      
        - Object
- InstanceContext
- Twilio::REST::Microvisor::V1::AccountConfigContext
 
- Defined in:
- lib/twilio-ruby/rest/microvisor/v1/account_config.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Instance Method Summary collapse
- 
  
    
      #delete  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    Delete the AccountConfigInstance. 
- 
  
    
      #fetch  ⇒ AccountConfigInstance 
    
    
  
  
  
  
  
  
  
  
  
    Fetch the AccountConfigInstance. 
- 
  
    
      #initialize(version, key)  ⇒ AccountConfigContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initialize the AccountConfigContext. 
- 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a detailed, user friendly representation. 
- 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Provide a user friendly representation. 
- 
  
    
      #update(value: nil)  ⇒ AccountConfigInstance 
    
    
  
  
  
  
  
  
  
  
  
    Update the AccountConfigInstance. 
Constructor Details
#initialize(version, key) ⇒ AccountConfigContext
Initialize the AccountConfigContext
| 167 168 169 170 171 172 173 | # File 'lib/twilio-ruby/rest/microvisor/v1/account_config.rb', line 167 def initialize(version, key) super(version) # Path Solution @solution = {key: key, } @uri = "/Configs/#{@solution[:key]}" end | 
Instance Method Details
#delete ⇒ Boolean
Delete the AccountConfigInstance
| 199 200 201 | # File 'lib/twilio-ruby/rest/microvisor/v1/account_config.rb', line 199 def delete @version.delete('DELETE', @uri) end | 
#fetch ⇒ AccountConfigInstance
Fetch the AccountConfigInstance
| 178 179 180 181 182 | # File 'lib/twilio-ruby/rest/microvisor/v1/account_config.rb', line 178 def fetch payload = @version.fetch('GET', @uri) AccountConfigInstance.new(@version, payload, key: @solution[:key], ) end | 
#inspect ⇒ Object
Provide a detailed, user friendly representation
| 212 213 214 215 | # File 'lib/twilio-ruby/rest/microvisor/v1/account_config.rb', line 212 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AccountConfigContext #{context}>" end | 
#to_s ⇒ Object
Provide a user friendly representation
| 205 206 207 208 | # File 'lib/twilio-ruby/rest/microvisor/v1/account_config.rb', line 205 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Microvisor.V1.AccountConfigContext #{context}>" end | 
#update(value: nil) ⇒ AccountConfigInstance
Update the AccountConfigInstance
| 188 189 190 191 192 193 194 | # File 'lib/twilio-ruby/rest/microvisor/v1/account_config.rb', line 188 def update(value: nil) data = Twilio::Values.of({'Value' => value, }) payload = @version.update('POST', @uri, data: data) AccountConfigInstance.new(@version, payload, key: @solution[:key], ) end |