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.
6 7 8 9 10 11 12 13 |
# File 'lib/graphoid/grapho.rb', line 6 def initialize(model) build_naming(model) @type = Graphoid::Types.generate(model) @order = Graphoid::Orders.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.
3 4 5 |
# File 'lib/graphoid/grapho.rb', line 3 def camel_name @camel_name end |
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
4 5 6 |
# File 'lib/graphoid/grapho.rb', line 4 def filter @filter end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
4 5 6 |
# File 'lib/graphoid/grapho.rb', line 4 def input @input end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/graphoid/grapho.rb', line 3 def name @name end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
4 5 6 |
# File 'lib/graphoid/grapho.rb', line 4 def order @order end |
#plural ⇒ Object (readonly)
Returns the value of attribute plural.
3 4 5 |
# File 'lib/graphoid/grapho.rb', line 3 def plural @plural end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/graphoid/grapho.rb', line 4 def type @type end |