Module: Alba::_ResourceClass

Includes:
Resource::_ClassMethods
Defined in:
sig/alba.rbs

Instance Method Summary collapse

Methods included from Resource::_ClassMethods

#assign_attributes, #assign_attributes_with_types, #association, #attribute, #attributes, #collection_key, #helper, #inherited, #layout, #meta, #method_added, #nested_attribute, #nesting, #on_error, #on_nil, #prefer_object_method!, #prefer_resource_method!, #root_key, #root_key!, #root_key_for_collection, #trait, #transform_keys, #transform_keys!, #validated_error_handler

Instance Method Details

#new ⇒ Resource::_InstanceMethods

Parameters:

  • object (Object)
  • params: (generic_hash)
  • within: (Object)
  • with_traits: (Symbol, Array[Symbol], nil)

Returns:



16
# File 'sig/alba.rbs', line 16

def new: (untyped object, ?params: generic_hash, ?within: untyped, ?with_traits: Symbol | Array[Symbol] | nil) -> Resource::_InstanceMethods