class MessageBird::CallFlow
Attributes
created_at[R]
default[RW]
id[RW]
record[RW]
steps[R]
title[RW]
updated_at[R]
Public Class Methods
new(json)
click to toggle source
Calls superclass method
MessageBird::Base::new
# File lib/messagebird/callflow.rb, line 10 def initialize(json) params = json.include?('data') ? json['data'].first : json super(params) end
Public Instance Methods
created_at=(value)
click to toggle source
# File lib/messagebird/call_flow.rb, line 14 def created_at=(value) @created_at = value_to_time(value) end
steps=(json)
click to toggle source
# File lib/messagebird/call_flow.rb, line 10 def steps=(json) @steps = json.map { |s| MessageBird::CallFlowStep.new(s) } end
updated_at=(value)
click to toggle source
# File lib/messagebird/call_flow.rb, line 18 def updated_at=(value) @updated_at = value_to_time(value) end