Class: Prosereflect::Attribute::Base
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Prosereflect::Attribute::Base
- Defined in:
- lib/prosereflect/attribute/base.rb
Constant Summary collapse
- PM_TYPE =
'attribute'
Class Method Summary collapse
Instance Method Summary collapse
-
#to_h ⇒ Object
Convert to hash for serialization.
Class Method Details
.create(type, value) ⇒ Object
24 25 26 |
# File 'lib/prosereflect/attribute/base.rb', line 24 def self.create(type, value) new(type: type, value: value) end |
Instance Method Details
#to_h ⇒ Object
Convert to hash for serialization
29 30 31 |
# File 'lib/prosereflect/attribute/base.rb', line 29 def to_h { type => value } end |