Module: Trax::Model::ExtensionsFor::Struct
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::Validations, Base
- Included in:
- Attributes::Types::Struct::Value
- Defined in:
- lib/trax/model/extensions_for/struct.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
13 14 15 |
# File 'lib/trax/model/extensions_for/struct.rb', line 13 def inspect self.to_hash.inspect end |
#to_json ⇒ Object
17 18 19 |
# File 'lib/trax/model/extensions_for/struct.rb', line 17 def to_json self.to_hash.to_json end |
#value ⇒ Object
21 22 23 |
# File 'lib/trax/model/extensions_for/struct.rb', line 21 def value self end |