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)


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

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)


141
142
143
# File 'sig/types.rbs', line 141

def action_index
  @action_index
end

#action_typeString?

Returns the value of attribute action_type.

Returns:

  • (String, nil)


142
143
144
# File 'sig/types.rbs', line 142

def action_type
  @action_type
end

#datajson_value?

Returns the value of attribute data.

Returns:

  • (json_value, nil)


144
145
146
# File 'sig/types.rbs', line 144

def data
  @data
end

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


145
146
147
# File 'sig/types.rbs', line 145

def error
  @error
end

#successBoolean?

Returns the value of attribute success.

Returns:

  • (Boolean, nil)


143
144
145
# File 'sig/types.rbs', line 143

def success
  @success
end