Class: Twilio::REST::FlexApi::V1::PluginReleaseInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::FlexApi::V1::PluginReleaseInstance
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Plugin Release resource and owns this resource.
-
#configuration_sid ⇒ String
The SID of the Plugin Configuration resource to release.
-
#context ⇒ PluginReleaseContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#date_created ⇒ Time
The date and time in GMT when the Flex Plugin Release was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#fetch(flex_metadata: :unset) ⇒ PluginReleaseInstance
Fetch the PluginReleaseInstance.
-
#initialize(version, payload, sid: nil) ⇒ PluginReleaseInstance
constructor
Initialize the PluginReleaseInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
The unique string that we created to identify the Plugin Release resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The absolute URL of the Plugin Release resource.
Constructor Details
#initialize(version, payload, sid: nil) ⇒ PluginReleaseInstance
Initialize the PluginReleaseInstance
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 449 def initialize(version, payload , sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'configuration_sid' => payload['configuration_sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'url' => payload['url'], } # Context @instance_context = nil @params = { 'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Plugin Release resource and owns this resource.
486 487 488 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 486 def account_sid @properties['account_sid'] end |
#configuration_sid ⇒ String
Returns The SID of the Plugin Configuration resource to release.
492 493 494 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 492 def configuration_sid @properties['configuration_sid'] end |
#context ⇒ PluginReleaseContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
471 472 473 474 475 476 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 471 def context unless @instance_context @instance_context = PluginReleaseContext.new(@version , @params['sid']) end @instance_context end |
#date_created ⇒ Time
Returns The date and time in GMT when the Flex Plugin Release was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
498 499 500 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 498 def date_created @properties['date_created'] end |
#fetch(flex_metadata: :unset) ⇒ PluginReleaseInstance
Fetch the PluginReleaseInstance
512 513 514 515 516 517 518 519 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 512 def fetch( flex_metadata: :unset ) context.fetch( flex_metadata: , ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
530 531 532 533 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 530 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.FlexApi.V1.PluginReleaseInstance #{values}>" end |
#sid ⇒ String
Returns The unique string that we created to identify the Plugin Release resource.
480 481 482 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 480 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
523 524 525 526 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 523 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.FlexApi.V1.PluginReleaseInstance #{values}>" end |
#url ⇒ String
Returns The absolute URL of the Plugin Release resource.
504 505 506 |
# File 'lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb', line 504 def url @properties['url'] end |