Class: Generators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/toschas/filterable/generators/base.rb

Direct Known Subclasses

Custom, Joined, Simple

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, filters, options) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
# File 'lib/toschas/filterable/generators/base.rb', line 5

def initialize(model, filters, options)
  @model = model
  @filters = filters
  @options = options
end

Instance Attribute Details

#filtersObject (readonly)

Returns the value of attribute filters.



3
4
5
# File 'lib/toschas/filterable/generators/base.rb', line 3

def filters
  @filters
end

#modelObject (readonly)

Returns the value of attribute model.



3
4
5
# File 'lib/toschas/filterable/generators/base.rb', line 3

def model
  @model
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/toschas/filterable/generators/base.rb', line 3

def options
  @options
end

Instance Method Details

#generateObject



11
12
# File 'lib/toschas/filterable/generators/base.rb', line 11

def generate
end