Class: Codegen::Types::Entity
- Inherits:
-
Object
- Object
- Codegen::Types::Entity
- Defined in:
- lib/codegen/types/entity.rb
Instance Attribute Summary collapse
-
#methods ⇒ Object
Returns the value of attribute methods.
-
#name ⇒ Object
Returns the value of attribute name.
-
#relations ⇒ Object
Returns the value of attribute relations.
Instance Method Summary collapse
-
#initialize(params) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize(params) ⇒ Entity
Returns a new instance of Entity.
6 7 8 9 10 |
# File 'lib/codegen/types/entity.rb', line 6 def initialize params @name = params[:name] @relations = params[:relations] @methods = params[:methods] end |
Instance Attribute Details
#methods ⇒ Object
Returns the value of attribute methods.
4 5 6 |
# File 'lib/codegen/types/entity.rb', line 4 def methods @methods end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/codegen/types/entity.rb', line 4 def name @name end |
#relations ⇒ Object
Returns the value of attribute relations.
4 5 6 |
# File 'lib/codegen/types/entity.rb', line 4 def relations @relations end |