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
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that the Campaign belongs to.
-
#campaign_id ⇒ String
ID of the preregistered campaign.
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#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](www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
-
#sid ⇒ String
The unique string that identifies a US A2P Compliance resource ‘QE2c6890da8086d771620e9b13fadeba0b`.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ ExternalCampaignInstance
Initialize the ExternalCampaignInstance
111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 111 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], '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](www.twilio.com/docs/iam/api/account) that the Campaign belongs to.
133 134 135 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 133 def account_sid @properties['account_sid'] end |
#campaign_id ⇒ String
Returns ID of the preregistered campaign.
139 140 141 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 139 def campaign_id @properties['campaign_id'] end |
#date_created ⇒ Time
Returns The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
151 152 153 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 151 def date_created @properties['date_created'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
163 164 165 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 163 def inspect "<Twilio.Messaging.V1.ExternalCampaignInstance>" end |
#messaging_service_sid ⇒ String
Returns The SID of the [Messaging Service](www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
145 146 147 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 145 def messaging_service_sid @properties['messaging_service_sid'] end |
#sid ⇒ String
Returns The unique string that identifies a US A2P Compliance resource ‘QE2c6890da8086d771620e9b13fadeba0b`.
127 128 129 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 127 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
157 158 159 |
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 157 def to_s "<Twilio.Messaging.V1.ExternalCampaignInstance>" end |