Class: Twilio::REST::FlexApi::V1::ProvisioningStatusInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::FlexApi::V1::ProvisioningStatusInstance
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
Instance Method Summary collapse
-
#context ⇒ ProvisioningStatusContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#fetch ⇒ ProvisioningStatusInstance
Fetch the ProvisioningStatusInstance.
-
#initialize(version, payload) ⇒ ProvisioningStatusInstance
constructor
Initialize the ProvisioningStatusInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #status ⇒ Status
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The absolute URL of the resource.
Constructor Details
#initialize(version, payload) ⇒ ProvisioningStatusInstance
Initialize the ProvisioningStatusInstance
129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 129 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'status' => payload['status'], 'url' => payload['url'], } # Context @instance_context = nil @params = { } end |
Instance Method Details
#context ⇒ ProvisioningStatusContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
147 148 149 150 151 152 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 147 def context unless @instance_context @instance_context = ProvisioningStatusContext.new(@version ) end @instance_context end |
#fetch ⇒ ProvisioningStatusInstance
Fetch the ProvisioningStatusInstance
169 170 171 172 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 169 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
183 184 185 186 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 183 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>" end |
#status ⇒ Status
156 157 158 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 156 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
176 177 178 179 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 176 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>" end |
#url ⇒ String
Returns The absolute URL of the resource.
162 163 164 |
# File 'lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb', line 162 def url @properties['url'] end |