Class: Graphoid::Grapho

Inherits:
Object
  • Object
show all
Defined in:
lib/graphoid/grapho.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute camel_name.



5
6
7
# File 'lib/graphoid/grapho.rb', line 5

def camel_name
  @camel_name
end

#filterObject (readonly)

Returns the value of attribute filter.



6
7
8
# File 'lib/graphoid/grapho.rb', line 6

def filter
  @filter
end

#inputObject (readonly)

Returns the value of attribute input.



6
7
8
# File 'lib/graphoid/grapho.rb', line 6

def input
  @input
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/graphoid/grapho.rb', line 5

def name
  @name
end

#orderObject (readonly)

Returns the value of attribute order.



6
7
8
# File 'lib/graphoid/grapho.rb', line 6

def order
  @order
end

#pluralObject (readonly)

Returns the value of attribute plural.



5
6
7
# File 'lib/graphoid/grapho.rb', line 5

def plural
  @plural
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/graphoid/grapho.rb', line 6

def type
  @type
end