Class: KapsoClientRuby::Types::FlowScreen
- Inherits:
-
Object
- Object
- KapsoClientRuby::Types::FlowScreen
- Defined in:
- lib/kapso_client_ruby/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#terminal ⇒ Object
readonly
Returns the value of attribute terminal.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(data) ⇒ FlowScreen
constructor
A new instance of FlowScreen.
- #success? ⇒ Boolean
- #terminal? ⇒ Boolean
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'] = data['error_message'] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
293 294 295 |
# File 'lib/kapso_client_ruby/types.rb', line 293 def data @data end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
293 294 295 |
# File 'lib/kapso_client_ruby/types.rb', line 293 def end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
293 294 295 |
# File 'lib/kapso_client_ruby/types.rb', line 293 def id @id end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
293 294 295 |
# File 'lib/kapso_client_ruby/types.rb', line 293 def success @success end |
#terminal ⇒ Object (readonly)
Returns the value of attribute terminal.
293 294 295 |
# File 'lib/kapso_client_ruby/types.rb', line 293 def terminal @terminal end |
#title ⇒ Object (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
308 309 310 |
# File 'lib/kapso_client_ruby/types.rb', line 308 def success? @success end |
#terminal? ⇒ Boolean
304 305 306 |
# File 'lib/kapso_client_ruby/types.rb', line 304 def terminal? @terminal end |