Class: Tailmix::Definition::Result::Variant
- Inherits:
-
Struct
- Object
- Struct
- Tailmix::Definition::Result::Variant
- Defined in:
- lib/tailmix/definition/result.rb
Instance Attribute Summary collapse
-
#aria ⇒ Object
Returns the value of attribute aria.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#class_groups ⇒ Object
Returns the value of attribute class_groups.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#aria ⇒ Object
Returns the value of attribute aria
44 45 46 |
# File 'lib/tailmix/definition/result.rb', line 44 def aria @aria end |
#attributes ⇒ Object
Returns the value of attribute attributes
44 45 46 |
# File 'lib/tailmix/definition/result.rb', line 44 def attributes @attributes end |
#class_groups ⇒ Object
Returns the value of attribute class_groups
44 45 46 |
# File 'lib/tailmix/definition/result.rb', line 44 def class_groups @class_groups end |
#data ⇒ Object
Returns the value of attribute data
44 45 46 |
# File 'lib/tailmix/definition/result.rb', line 44 def data @data end |
Instance Method Details
#classes ⇒ Object
45 46 47 |
# File 'lib/tailmix/definition/result.rb', line 45 def classes class_groups.flat_map { |group| group[:classes] } end |
#to_h ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/tailmix/definition/result.rb', line 49 def to_h { classes: classes, class_groups: class_groups, data: data, aria: aria, attributes: attributes } end |