Class: MessageBird::CallFlow
- Defined in:
- lib/messagebird/callflow.rb,
lib/messagebird/call_flow.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#default ⇒ Object
Returns the value of attribute default.
-
#id ⇒ Object
Returns the value of attribute id.
-
#record ⇒ Object
Returns the value of attribute record.
-
#steps ⇒ Object
Returns the value of attribute steps.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ CallFlow
constructor
A new instance of CallFlow.
Methods inherited from Base
#map_hash_elements_to_self, #value_to_time
Constructor Details
#initialize(json) ⇒ CallFlow
Returns a new instance of CallFlow.
10 11 12 13 |
# File 'lib/messagebird/callflow.rb', line 10 def initialize(json) params = json.include?('data') ? json['data'].first : json super(params) end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/messagebird/callflow.rb', line 8 def created_at @created_at end |
#default ⇒ Object
Returns the value of attribute default.
7 8 9 |
# File 'lib/messagebird/callflow.rb', line 7 def default @default end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/messagebird/callflow.rb', line 7 def id @id end |
#record ⇒ Object
Returns the value of attribute record.
7 8 9 |
# File 'lib/messagebird/callflow.rb', line 7 def record @record end |
#steps ⇒ Object
Returns the value of attribute steps.
8 9 10 |
# File 'lib/messagebird/callflow.rb', line 8 def steps @steps end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/messagebird/callflow.rb', line 7 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/messagebird/callflow.rb', line 8 def updated_at @updated_at end |