Class: MDWA::DSL::EntitySpecification
- Inherits:
-
Object
- Object
- MDWA::DSL::EntitySpecification
- Defined in:
- lib/mdwa/dsl/entity_specification.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#details ⇒ Object
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(description) ⇒ EntitySpecification
constructor
A new instance of EntitySpecification.
- #such_as(detail) ⇒ Object
Constructor Details
#initialize(description) ⇒ EntitySpecification
Returns a new instance of EntitySpecification.
9 10 11 12 13 |
# File 'lib/mdwa/dsl/entity_specification.rb', line 9 def initialize(description) self.description = description self.details = [] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/mdwa/dsl/entity_specification.rb', line 7 def description @description end |
#details ⇒ Object
Returns the value of attribute details.
7 8 9 |
# File 'lib/mdwa/dsl/entity_specification.rb', line 7 def details @details end |
Instance Method Details
#such_as(detail) ⇒ Object
15 16 17 |
# File 'lib/mdwa/dsl/entity_specification.rb', line 15 def such_as(detail) self.details << detail end |