Class: Twilio::REST::Messaging::V1::ExternalCampaignInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Messaging::V1::ExternalCampaignInstance
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/external_campaign.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource.
-
#campaign_id ⇒ String
ID of the preregistered campaign.
-
#date_created ⇒ Time
The ISO 8601 date and time in GMT when the resource was created.
-
#initialize(version, payload) ⇒ ExternalCampaignInstance
constructor
Initialize the ExternalCampaignInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#messaging_service_sid ⇒ String
The SID of the Messaging Service the resource is associated with.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ ExternalCampaignInstance
Initialize the ExternalCampaignInstance
92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 92 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'campaign_id' => payload['campaign_id'], 'messaging_service_sid' => payload['messaging_service_sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the Account that created the resource.
106 107 108 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 106 def account_sid @properties['account_sid'] end |
#campaign_id ⇒ String
Returns ID of the preregistered campaign.
112 113 114 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 112 def campaign_id @properties['campaign_id'] end |
#date_created ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was created.
124 125 126 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 124 def date_created @properties['date_created'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
136 137 138 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 136 def inspect "<Twilio.Messaging.V1.ExternalCampaignInstance>" end |
#messaging_service_sid ⇒ String
Returns The SID of the Messaging Service the resource is associated with.
118 119 120 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 118 def messaging_service_sid @properties['messaging_service_sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
130 131 132 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 130 def to_s "<Twilio.Messaging.V1.ExternalCampaignInstance>" end |