Class: Graphoid::Grapho
- Inherits:
-
Object
- Object
- Graphoid::Grapho
- Defined in:
- lib/graphoid/grapho.rb
Instance Attribute Summary collapse
-
#camel_name ⇒ Object
readonly
Returns the value of attribute camel_name.
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#plural ⇒ Object
readonly
Returns the value of attribute plural.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(model) ⇒ Grapho
constructor
A new instance of Grapho.
Constructor Details
#initialize(model) ⇒ Grapho
Returns a new instance of Grapho.
8 9 10 11 12 13 14 15 |
# File 'lib/graphoid/grapho.rb', line 8 def initialize(model) build_naming(model) @type = Graphoid::Types.generate(model) @order = Graphoid::Sorter.generate(model) @input = Graphoid::Inputs.generate(model) @filter = Graphoid::Filters.generate(model) end |
Instance Attribute Details
#camel_name ⇒ Object (readonly)
Returns the value of attribute camel_name.
5 6 7 |
# File 'lib/graphoid/grapho.rb', line 5 def camel_name @camel_name end |
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
6 7 8 |
# File 'lib/graphoid/grapho.rb', line 6 def filter @filter end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
6 7 8 |
# File 'lib/graphoid/grapho.rb', line 6 def input @input end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/graphoid/grapho.rb', line 5 def name @name end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
6 7 8 |
# File 'lib/graphoid/grapho.rb', line 6 def order @order end |
#plural ⇒ Object (readonly)
Returns the value of attribute plural.
5 6 7 |
# File 'lib/graphoid/grapho.rb', line 5 def plural @plural end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/graphoid/grapho.rb', line 6 def type @type end |