Class: Twilio::REST::Messaging::V1::ExternalCampaignInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/external_campaign.rb

Instance Method Summary collapse

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_sidString



133
134
135
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 133

def 
    @properties['account_sid']
end

#campaign_idString



139
140
141
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 139

def campaign_id
    @properties['campaign_id']
end

#date_createdTime



151
152
153
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 151

def date_created
    @properties['date_created']
end

#inspectObject

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_sidString



145
146
147
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 145

def messaging_service_sid
    @properties['messaging_service_sid']
end

#sidString



127
128
129
# File 'lib/twilio-ruby/rest/messaging/v1/external_campaign.rb', line 127

def sid
    @properties['sid']
end

#to_sObject

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