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: (json_value)
  • error: (String)


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

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

Instance Attribute Details

#action_indexInteger?

Returns the value of attribute action_index.

Returns:

  • (Integer, nil)


149
150
151
# File 'sig/types.rbs', line 149

def action_index
  @action_index
end

#action_typeString?

Returns the value of attribute action_type.

Returns:

  • (String, nil)


150
151
152
# File 'sig/types.rbs', line 150

def action_type
  @action_type
end

#datajson_value?

Returns the value of attribute data.

Returns:

  • (json_value, nil)


152
153
154
# File 'sig/types.rbs', line 152

def data
  @data
end

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


153
154
155
# File 'sig/types.rbs', line 153

def error
  @error
end

#successBoolean?

Returns the value of attribute success.

Returns:

  • (Boolean, nil)


151
152
153
# File 'sig/types.rbs', line 151

def success
  @success
end