Class: Crawlberg::ActionResult

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeActionResult

Returns a new instance of ActionResult.

Parameters:

  • action_index: (Integer)
  • action_type: (String)
  • success: (Boolean)
  • data: (String)
  • error: (String)


19
# File 'sig/types.rbs', line 19

def initialize: (?action_index: Integer, ?action_type: String, ?success: bool, ?data: String, ?error: String) -> void

Instance Attribute Details

#action_indexInteger (readonly)

Returns the value of attribute action_index.

Returns:

  • (Integer)


13
14
15
# File 'sig/types.rbs', line 13

def action_index
  @action_index
end

#action_typeString (readonly)

Returns the value of attribute action_type.

Returns:

  • (String)


14
15
16
# File 'sig/types.rbs', line 14

def action_type
  @action_type
end

#dataString? (readonly)

Returns the value of attribute data.

Returns:

  • (String, nil)


16
17
18
# File 'sig/types.rbs', line 16

def data
  @data
end

#errorString? (readonly)

Returns the value of attribute error.

Returns:

  • (String, nil)


17
18
19
# File 'sig/types.rbs', line 17

def error
  @error
end

#successBoolean (readonly)

Returns the value of attribute success.

Returns:

  • (Boolean)


15
16
17
# File 'sig/types.rbs', line 15

def success
  @success
end