Class: Deimos::SchemaClass::Base

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

Overview

Base Class for Schema Classes generated from Avro.

Direct Known Subclasses

Enum, Record

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

@param _args

Parameters:

  • _args (::Array[Object])


716
# File 'sig/defs.rbs', line 716

def initialize: (*::Array[Object] _args) -> void

Class Method Details

.initialize_from_valueSchemaClass::Base

Initializes this class from a given value

@param value

Parameters:

  • value (Object)

Returns:



738
# File 'sig/defs.rbs', line 738

def self.initialize_from_value: (Object value) -> SchemaClass::Base

Instance Method Details

#==Boolean

@param other

Parameters:

Returns:

  • (Boolean)


731
# File 'sig/defs.rbs', line 731

def ==: (SchemaClass::Base other) -> bool

#[]=void

This method returns an undefined value.

@param key

@param val

Parameters:

  • key (String, Symbol)
  • val (Object)


728
# File 'sig/defs.rbs', line 728

def []=: ((String | Symbol) key, Object val) -> void

#as_json::Hash[untyped, untyped]

Converts the object to a hash which can be used for debugging or comparing objects.

@param _opts

@return — a hash representation of the payload

Parameters:

  • _opts (::Hash[untyped, untyped])

Returns:

  • (::Hash[untyped, untyped])


723
# File 'sig/defs.rbs', line 723

def as_json: (?::Hash[untyped, untyped] _opts) -> ::Hash[untyped, untyped]

#hashInteger

Returns:

  • (Integer)


740
# File 'sig/defs.rbs', line 740

def hash: () -> Integer

#inspectString

Returns:

  • (String)


733
# File 'sig/defs.rbs', line 733

def inspect: () -> String