Class: Svarog::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/svarog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



9
10
11
# File 'lib/svarog.rb', line 9

def success
  @success
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



9
10
11
# File 'lib/svarog.rb', line 9

def value
  @value
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/svarog.rb', line 14

def failure?
  !success
end

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/svarog.rb', line 10

def success?
  success
end