Class: PactBroker::Client::CommandResult

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/client/command_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success, message = nil) ⇒ CommandResult

Returns a new instance of CommandResult.



6
7
8
9
# File 'lib/pact_broker/client/command_result.rb', line 6

def initialize success, message = nil
  @success = success
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/pact_broker/client/command_result.rb', line 4

def message
  @message
end

#successObject (readonly)

Returns the value of attribute success.



4
5
6
# File 'lib/pact_broker/client/command_result.rb', line 4

def success
  @success
end