Class: Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationContext
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
Instance Method Summary collapse
-
#fetch ⇒ LinkshorteningMessagingServiceDomainAssociationInstance
Fetch the LinkshorteningMessagingServiceDomainAssociationInstance.
-
#initialize(version, messaging_service_sid) ⇒ LinkshorteningMessagingServiceDomainAssociationContext
constructor
Initialize the LinkshorteningMessagingServiceDomainAssociationContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, messaging_service_sid) ⇒ LinkshorteningMessagingServiceDomainAssociationContext
Initialize the LinkshorteningMessagingServiceDomainAssociationContext
49 50 51 52 53 54 55 56 57 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 49 def initialize(version, messaging_service_sid) super(version) # Path Solution @solution = { messaging_service_sid: messaging_service_sid, } @uri = "/LinkShortening/MessagingServices/#{@solution[:messaging_service_sid]}/Domain" end |
Instance Method Details
#fetch ⇒ LinkshorteningMessagingServiceDomainAssociationInstance
Fetch the LinkshorteningMessagingServiceDomainAssociationInstance
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 61 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) LinkshorteningMessagingServiceDomainAssociationInstance.new( @version, payload, messaging_service_sid: @solution[:messaging_service_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
87 88 89 90 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 87 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
80 81 82 83 |
# File 'lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb', line 80 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationContext #{context}>" end |