Class: Rober::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/rober/entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEntity

Returns a new instance of Entity.



5
6
7
# File 'lib/rober/entity.rb', line 5

def initialize
  @attributes = []
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



4
5
6
# File 'lib/rober/entity.rb', line 4

def attributes
  @attributes
end

#commentObject

Returns the value of attribute comment.



3
4
5
# File 'lib/rober/entity.rb', line 3

def comment
  @comment
end

#logical_nameObject

Returns the value of attribute logical_name.



3
4
5
# File 'lib/rober/entity.rb', line 3

def logical_name
  @logical_name
end

#physical_nameObject

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