Class: Rdux::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



4
5
6
# File 'lib/rdux/result.rb', line 4

def action
  @action
end

#after_saveObject

Returns the value of attribute after_save

Returns:

  • (Object)

    the current value of after_save



4
5
6
# File 'lib/rdux/result.rb', line 4

def after_save
  @after_save
end

#down_payloadObject

Returns the value of attribute down_payload

Returns:

  • (Object)

    the current value of down_payload



4
5
6
# File 'lib/rdux/result.rb', line 4

def down_payload
  @down_payload
end

#nestedObject

Returns the value of attribute nested

Returns:

  • (Object)

    the current value of nested



4
5
6
# File 'lib/rdux/result.rb', line 4

def nested
  @nested
end

#okObject

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



4
5
6
# File 'lib/rdux/result.rb', line 4

def ok
  @ok
end

#saveObject

Returns the value of attribute save

Returns:

  • (Object)

    the current value of save



4
5
6
# File 'lib/rdux/result.rb', line 4

def save
  @save
end

#up_resultObject

Returns the value of attribute up_result

Returns:

  • (Object)

    the current value of up_result



4
5
6
# File 'lib/rdux/result.rb', line 4

def up_result
  @up_result
end

#valObject

Returns the value of attribute val

Returns:

  • (Object)

    the current value of val



4
5
6
# File 'lib/rdux/result.rb', line 4

def val
  @val
end

Instance Method Details

#save_failed?Boolean

Returns:

  • (Boolean)


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

def save_failed?
  ok == false && save
end