Class: Yes::Core::Aggregate::Dsl::AttributeData
- Inherits:
-
Object
- Object
- Yes::Core::Aggregate::Dsl::AttributeData
- Defined in:
- lib/yes/core/aggregate/dsl/attribute_data.rb
Overview
Data object that holds information about an attribute definition in an aggregate
Instance Attribute Summary collapse
- #aggregate_class ⇒ Object readonly
- #aggregate_name ⇒ Object readonly
- #context_name ⇒ Object readonly
- #encrypted ⇒ Object readonly
- #localized ⇒ Object readonly
- #name ⇒ Object readonly
- #type ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(name, type, aggregate_class, options = {}) ⇒ AttributeData
constructor
A new instance of AttributeData.
Constructor Details
#initialize(name, type, aggregate_class, options = {}) ⇒ AttributeData
Returns a new instance of AttributeData.
24 25 26 27 28 29 30 31 32 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 24 def initialize(name, type, aggregate_class, = {}) @name = name @type = type @aggregate_class = aggregate_class @context_name = .delete(:context) @aggregate_name = .delete(:aggregate) @localized = .delete(:localized) || false @encrypted = .delete(:encrypted) || false end |
Instance Attribute Details
#aggregate_class ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def aggregate_class @aggregate_class end |
#aggregate_name ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def aggregate_name @aggregate_name end |
#context_name ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def context_name @context_name end |
#encrypted ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def encrypted @encrypted end |
#localized ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def localized @localized end |
#name ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def name @name end |
#type ⇒ Object (readonly)
13 14 15 |
# File 'lib/yes/core/aggregate/dsl/attribute_data.rb', line 13 def type @type end |