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.



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