Class: PgVerify::Shell::LoadingPrompt::LoadingResult
- Inherits:
-
Object
- Object
- PgVerify::Shell::LoadingPrompt::LoadingResult
- Defined in:
- lib/pg-verify/shell/loading/loading_prompt.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#message ⇒ Object
Returns the value of attribute message.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(data, message, state: :success) ⇒ LoadingResult
constructor
A new instance of LoadingResult.
Constructor Details
#initialize(data, message, state: :success) ⇒ LoadingResult
Returns a new instance of LoadingResult.
34 35 36 37 38 |
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 34 def initialize(data, , state: :success) @data = data @message = @state = state end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
33 34 35 |
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 33 def data @data end |
#message ⇒ Object
Returns the value of attribute message.
33 34 35 |
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 33 def @message end |
#state ⇒ Object
Returns the value of attribute state.
33 34 35 |
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 33 def state @state end |