Class: Prosody::NativePublishedMap

Inherits:
Object
  • Object
show all
Defined in:
lib/prosody/native_stubs.rb,
sig/state.rbs

Instance Method Summary collapse

Instance Method Details

#contains_key(key, map_key) ⇒ Boolean

Parameters:

  • key (String)
  • map_key (String)

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


893
894
895
# File 'lib/prosody/native_stubs.rb', line 893

def contains_key(key, map_key)
  raise NotImplementedError, "This method is implemented natively in Rust"
end

#get(key, map_key) ⇒ json_value?

Parameters:

  • key (String)
  • map_key (String)

Returns:

  • (json_value, nil)

Raises:

  • (NotImplementedError)


885
886
887
# File 'lib/prosody/native_stubs.rb', line 885

def get(key, map_key)
  raise NotImplementedError, "This method is implemented natively in Rust"
end

#get_many(key, map_keys) ⇒ Array[json_value?]

Parameters:

  • key (String)
  • map_keys (Array[String])

Returns:

  • (Array[json_value?])

Raises:

  • (NotImplementedError)


889
890
891
# File 'lib/prosody/native_stubs.rb', line 889

def get_many(key, map_keys)
  raise NotImplementedError, "This method is implemented natively in Rust"
end

#keys(key, direction) ⇒ NativeMapKeyScan

Parameters:

  • key (String)
  • direction (Symbol)

Returns:

Raises:

  • (NotImplementedError)


901
902
903
# File 'lib/prosody/native_stubs.rb', line 901

def keys(key, direction)
  raise NotImplementedError, "This method is implemented natively in Rust"
end

#scan(key, direction) ⇒ NativeJsonMapScan

Parameters:

  • key (String)
  • direction (Symbol)

Returns:

Raises:

  • (NotImplementedError)


897
898
899
# File 'lib/prosody/native_stubs.rb', line 897

def scan(key, direction)
  raise NotImplementedError, "This method is implemented natively in Rust"
end