Class: Twilio::REST::Content::V1::ContentList::CardAction

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb,
lib/twilio-ruby/rest/content/v1/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ CardAction

Returns a new instance of CardAction.



76
77
78
79
80
81
82
83
84
85
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 76

def initialize(payload)
        @type = payload["type"]
        @title = payload["title"]
        @url = payload["url"]
        @phone = payload["phone"]
        @id = payload["id"]
        @code = payload["code"]
        @webview_size = payload["webview_size"]
        @digitable_line = payload["digitable_line"]
end

Instance Attribute Details

#code ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def code
  @code
end

#digitable_line ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def digitable_line
  @digitable_line
end

#id ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def id
  @id
end

#phone ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def phone
  @phone
end

#title ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def title
  @title
end

#type ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def type
  @type
end

#url ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def url
  @url
end

#webview_size ⇒ Object

Parameters:



75
76
77
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 75

def webview_size
  @webview_size
end

Instance Method Details

#to_json(options = {}) ⇒ Object



86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 86

def to_json(options = {})
{
        "type": @type,
        "title": @title,
        "url": @url,
        "phone": @phone,
        "id": @id,
        "code": @code,
        "webview_size": @webview_size,
        "digitable_line": @digitable_line,
}.to_json(options)
end