Class: Plivo::Row
- Inherits:
-
Object
- Object
- Plivo::Row
- Defined in:
- lib/plivo/interactive.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id: nil, title: nil, description: nil) ⇒ Row
constructor
A new instance of Row.
- #to_hash ⇒ Object
Constructor Details
#initialize(id: nil, title: nil, description: nil) ⇒ Row
125 126 127 128 129 |
# File 'lib/plivo/interactive.rb', line 125 def initialize(id: nil, title: nil, description: nil) @id = id @title = title @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
123 124 125 |
# File 'lib/plivo/interactive.rb', line 123 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
123 124 125 |
# File 'lib/plivo/interactive.rb', line 123 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
123 124 125 |
# File 'lib/plivo/interactive.rb', line 123 def title @title end |
Instance Method Details
#to_hash ⇒ Object
131 132 133 134 135 136 137 |
# File 'lib/plivo/interactive.rb', line 131 def to_hash { id: @id, title: @title, description: @description }.reject { |_, v| v.nil? } end |