Class: Funicular::Model
- Inherits:
-
Object
- Object
- Funicular::Model
- Extended by:
- Validations::ClassMethods
- Includes:
- Validations
- Defined in:
- sig/model.rbs,
sig/validations.rbs
Defined Under Namespace
Modules: Validations Classes: Errors
Constant Summary
Constants included from Validations::ClassMethods
Validations::ClassMethods::SHARED_OPTIONS
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
- .all ⇒ void
- .create ⇒ void
- .destroy ⇒ void
- .endpoints ⇒ Hash[String, Hash[String, String]]
- .endpoints= ⇒ Hash[String, Hash[String, String]]
- .find ⇒ void
- .load_schema ⇒ void
- .normalize_validation_options ⇒ Object
- .register_schema_validations ⇒ void
- .schema ⇒ Hash[String, Hash[String, untyped]]
- .schema= ⇒ Hash[String, Hash[String, untyped]]
Instance Method Summary collapse
- #destroy ⇒ void
-
#initialize ⇒ Model
constructor
A new instance of Model.
- #reload ⇒ void
- #update ⇒ void
Methods included from Validations::ClassMethods
add_schema_validator, symbolize_keys, validates, validator_class_for, validators, validators_on
Methods included from Validations
#errors, included, #invalid?, #read_attribute_for_validation, #valid?
Constructor Details
#initialize ⇒ Model
Returns a new instance of Model.
14 |
# File 'sig/model.rbs', line 14
def initialize: (?Hash[untyped, untyped] attributes) -> void
|
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'sig/model.rbs', line 6 def id @id end |
Class Method Details
.all ⇒ void
This method returns an undefined value.
19 |
# File 'sig/model.rbs', line 19
def self.all: (?Hash[untyped, untyped] params) ?{ (Array[Model]? instances, String? error) -> void } -> void
|
.create ⇒ void
This method returns an undefined value.
21 |
# File 'sig/model.rbs', line 21
def self.create: (Hash[untyped, untyped] attrs, ?model_class: singleton(Model)) ?{ (Model? instance, untyped error) -> void } -> void
|
.destroy ⇒ void
This method returns an undefined value.
22 |
# File 'sig/model.rbs', line 22
def self.destroy: (?untyped id) ?{ (bool success, untyped result) -> void } -> void
|
.endpoints ⇒ Hash[String, Hash[String, String]]
11 |
# File 'sig/model.rbs', line 11
def self.endpoints: () -> Hash[String, Hash[String, String]]
|
.endpoints= ⇒ Hash[String, Hash[String, String]]
12 |
# File 'sig/model.rbs', line 12
def self.endpoints=: (Hash[String, Hash[String, String]] endpoints) -> Hash[String, Hash[String, String]]
|
.find ⇒ void
This method returns an undefined value.
20 |
# File 'sig/model.rbs', line 20
def self.find: (?untyped id, ?endpoint_name: String, ?model_class: singleton(Model)) ?{ (Model? instance, String? error) -> void } -> void
|
.load_schema ⇒ void
This method returns an undefined value.
15 |
# File 'sig/model.rbs', line 15
def self.load_schema: (Hash[String, untyped] schema_data) -> void
|
.normalize_validation_options ⇒ Object
17 |
# File 'sig/model.rbs', line 17
def self.normalize_validation_options: (Symbol | String kind, untyped opts) -> untyped
|
.register_schema_validations ⇒ void
This method returns an undefined value.
16 |
# File 'sig/model.rbs', line 16
def self.register_schema_validations: (untyped validations) -> void
|
.schema ⇒ Hash[String, Hash[String, untyped]]
9 |
# File 'sig/model.rbs', line 9
def self.schema: () -> Hash[String, Hash[String, untyped]]
|
.schema= ⇒ Hash[String, Hash[String, untyped]]
10 |
# File 'sig/model.rbs', line 10
def self.schema=: (Hash[String, Hash[String, untyped]] schema) -> Hash[String, Hash[String, untyped]]
|
Instance Method Details
#destroy ⇒ void
This method returns an undefined value.
25 |
# File 'sig/model.rbs', line 25
def destroy: () ?{ (bool success, untyped result) -> void } -> void
|
#reload ⇒ void
This method returns an undefined value.
26 |
# File 'sig/model.rbs', line 26
def reload: () ?{ (Model? instance, String? error) -> void } -> void
|
#update ⇒ void
This method returns an undefined value.
24 |
# File 'sig/model.rbs', line 24
def update: (?Hash[untyped, untyped]? attrs) ?{ (bool success, untyped result) -> void } -> void
|