Class: Gridspace::CallPhone

Inherits:
BaseCommand show all
Defined in:
lib/gridspace/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#class_name, #to_json

Methods inherited from JSONable

#from_json!, #to_json

Constructor Details

#initialize(phone_number, on_transcript = nil) ⇒ CallPhone

Returns a new instance of CallPhone.



74
75
76
77
# File 'lib/gridspace/commands.rb', line 74

def initialize phone_number, on_transcript = nil
  @phone_number = phone_number
  @on_transcript = on_transcript unless on_transcript.nil?
end

Instance Attribute Details

#on_transcriptObject

Returns the value of attribute on_transcript.



73
74
75
# File 'lib/gridspace/commands.rb', line 73

def on_transcript
  @on_transcript
end

#phone_numberObject

Returns the value of attribute phone_number.



73
74
75
# File 'lib/gridspace/commands.rb', line 73

def phone_number
  @phone_number
end