Class: Twilio::REST::FlexApi::V1::ProvisioningStatusContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::FlexApi::V1::ProvisioningStatusContext
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
Instance Method Summary collapse
-
#fetch ⇒ ProvisioningStatusInstance
Fetch the ProvisioningStatusInstance.
-
#initialize(version) ⇒ ProvisioningStatusContext
constructor
Initialize the ProvisioningStatusContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ProvisioningStatusContext
Initialize the ProvisioningStatusContext
48 49 50 51 52 53 54 55 56 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 48 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/account/provision/status" end |
Instance Method Details
#fetch ⇒ ProvisioningStatusInstance
Fetch the ProvisioningStatusInstance
60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 60 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) ProvisioningStatusInstance.new( @version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
85 86 87 88 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 85 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
78 79 80 81 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 78 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>" end |