Class: KapsoClientRuby::Types::FlowScreen

Inherits:
Object
  • Object
show all
Defined in:
lib/kapso_client_ruby/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FlowScreen

Returns a new instance of FlowScreen.



295
296
297
298
299
300
301
302
# File 'lib/kapso_client_ruby/types.rb', line 295

def initialize(data)
  @id = data['id']
  @title = data['title']
  @data = data['data'] || {}
  @terminal = data['terminal'] || false
  @success = data['success']
  @error_message = data['error_message']
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



293
294
295
# File 'lib/kapso_client_ruby/types.rb', line 293

def data
  @data
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



293
294
295
# File 'lib/kapso_client_ruby/types.rb', line 293

def error_message
  @error_message
end

#idObject (readonly)

Returns the value of attribute id.



293
294
295
# File 'lib/kapso_client_ruby/types.rb', line 293

def id
  @id
end

#successObject (readonly)

Returns the value of attribute success.



293
294
295
# File 'lib/kapso_client_ruby/types.rb', line 293

def success
  @success
end

#terminalObject (readonly)

Returns the value of attribute terminal.



293
294
295
# File 'lib/kapso_client_ruby/types.rb', line 293

def terminal
  @terminal
end

#titleObject (readonly)

Returns the value of attribute title.



293
294
295
# File 'lib/kapso_client_ruby/types.rb', line 293

def title
  @title
end

Instance Method Details

#success?Boolean

Returns:



308
309
310
# File 'lib/kapso_client_ruby/types.rb', line 308

def success?
  @success
end

#terminal?Boolean

Returns:



304
305
306
# File 'lib/kapso_client_ruby/types.rb', line 304

def terminal?
  @terminal
end