Class: Azeroth::Resourceable::Builder

Inherits:
Sinclair
  • Object
show all
Defined in:
lib/azeroth/resourceable/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(clazz, resource, **options) ⇒ Builder

Returns a new instance of Builder.



7
8
9
10
11
12
13
14
# File 'lib/azeroth/resourceable/builder.rb', line 7

def initialize(clazz, resource, **options)
  super(clazz, resource: resource.to_s, **options)

  add_params
  add_resource
  add_resource_for_routes
  add_routes
end