Class: MessageBird::CallFlow

Inherits:
Base
  • Object
show all
Defined in:
lib/messagebird/callflow.rb,
lib/messagebird/call_flow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Returns the value of attribute created_at.



8
9
10
# File 'lib/messagebird/callflow.rb', line 8

def created_at
  @created_at
end

#defaultObject

Returns the value of attribute default.



7
8
9
# File 'lib/messagebird/callflow.rb', line 7

def default
  @default
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/messagebird/callflow.rb', line 7

def id
  @id
end

#recordObject

Returns the value of attribute record.



7
8
9
# File 'lib/messagebird/callflow.rb', line 7

def record
  @record
end

#stepsObject

Returns the value of attribute steps.



8
9
10
# File 'lib/messagebird/callflow.rb', line 8

def steps
  @steps
end

#titleObject

Returns the value of attribute title.



7
8
9
# File 'lib/messagebird/callflow.rb', line 7

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.



8
9
10
# File 'lib/messagebird/callflow.rb', line 8

def updated_at
  @updated_at
end