Class: Interfacets::Shared::GeneratedStore::Spec
- Inherits:
-
Object
- Object
- Interfacets::Shared::GeneratedStore::Spec
- Defined in:
- lib/interfacets/shared/generated_store.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(name:, klass:, type:) ⇒ Spec
constructor
A new instance of Spec.
Constructor Details
#initialize(name:, klass:, type:) ⇒ Spec
Returns a new instance of Spec.
74 75 76 77 78 |
# File 'lib/interfacets/shared/generated_store.rb', line 74 def initialize(name:, klass:, type:) @name = name @klass = klass @type = type end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
73 74 75 |
# File 'lib/interfacets/shared/generated_store.rb', line 73 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
73 74 75 |
# File 'lib/interfacets/shared/generated_store.rb', line 73 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
73 74 75 |
# File 'lib/interfacets/shared/generated_store.rb', line 73 def type @type end |
Instance Method Details
#build ⇒ Object
80 81 82 |
# File 'lib/interfacets/shared/generated_store.rb', line 80 def build spec.klass.new end |