Class: PgVerify::Shell::LoadingPrompt::LoadingResult

Inherits:
Object
  • Object
show all
Defined in:
lib/pg-verify/shell/loading/loading_prompt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message, state: :success)
    @data = data
    @message = message
    @state = state
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



33
34
35
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 33

def data
  @data
end

#messageObject

Returns the value of attribute message.



33
34
35
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 33

def message
  @message
end

#stateObject

Returns the value of attribute state.



33
34
35
# File 'lib/pg-verify/shell/loading/loading_prompt.rb', line 33

def state
  @state
end