Exception: Hbc::CaskSha256Error

Inherits:
AbstractCaskErrorWithToken show all
Defined in:
Library/Homebrew/cask/lib/hbc/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Constructor Details

#initialize(token, expected = nil, actual = nil) ⇒ CaskSha256Error

Returns a new instance of CaskSha256Error



126
127
128
129
130
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 126

def initialize(token, expected = nil, actual = nil)
  super(token)
  @expected = expected
  @actual = actual
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual



124
125
126
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 124

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected



124
125
126
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 124

def expected
  @expected
end