Class: MDWA::DSL::EntitySpecification

Inherits:
Object
  • Object
show all
Defined in:
lib/mdwa/dsl/entity_specification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/mdwa/dsl/entity_specification.rb', line 7

def description
  @description
end

#detailsObject

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