Class: Rober::Entity
- Inherits:
-
Object
- Object
- Rober::Entity
- Defined in:
- lib/rober/entity.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#logical_name ⇒ Object
Returns the value of attribute logical_name.
-
#physical_name ⇒ Object
Returns the value of attribute physical_name.
Instance Method Summary collapse
- #add(attribute) ⇒ Object
-
#initialize ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize ⇒ Entity
Returns a new instance of Entity.
5 6 7 |
# File 'lib/rober/entity.rb', line 5 def initialize @attributes = [] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/rober/entity.rb', line 4 def attributes @attributes end |
#comment ⇒ Object
Returns the value of attribute comment.
3 4 5 |
# File 'lib/rober/entity.rb', line 3 def comment @comment end |
#logical_name ⇒ Object
Returns the value of attribute logical_name.
3 4 5 |
# File 'lib/rober/entity.rb', line 3 def logical_name @logical_name end |
#physical_name ⇒ Object
Returns the value of attribute physical_name.
3 4 5 |
# File 'lib/rober/entity.rb', line 3 def physical_name @physical_name end |
Instance Method Details
#add(attribute) ⇒ Object
9 10 11 |
# File 'lib/rober/entity.rb', line 9 def add(attribute) @attributes << attribute end |