Class: Ynl::Models::AttributeSet::Attribute
- Inherits:
-
Struct
- Object
- Struct
- Ynl::Models::AttributeSet::Attribute
- Defined in:
- ynl/lib/ynl/models.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#enum ⇒ Object
Returns the value of attribute enum.
-
#enum_as_flags ⇒ Object
Returns the value of attribute enum_as_flags.
-
#multi_attr ⇒ Object
Returns the value of attribute multi_attr.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def checks @checks end |
#doc ⇒ Object
Returns the value of attribute doc
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def doc @doc end |
#enum ⇒ Object
Returns the value of attribute enum
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def enum @enum end |
#enum_as_flags ⇒ Object
Returns the value of attribute enum_as_flags
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def enum_as_flags @enum_as_flags end |
#multi_attr ⇒ Object
Returns the value of attribute multi_attr
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def multi_attr @multi_attr end |
#name ⇒ Object
Returns the value of attribute name
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def name @name end |
#type ⇒ Object
Returns the value of attribute type
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def type @type end |
#value ⇒ Object
Returns the value of attribute value
112 113 114 |
# File 'ynl/lib/ynl/models.rb', line 112 def value @value end |
Instance Method Details
#multi? ⇒ Boolean
119 120 121 |
# File 'ynl/lib/ynl/models.rb', line 119 def multi? multi_attr end |
#resolve(f) ⇒ Object
113 114 115 116 117 |
# File 'ynl/lib/ynl/models.rb', line 113 def resolve(f) self.type = type.resolve(f) self.enum = enum.resolve(f) if enum self end |