Class: Gearhead::Configuration
- Inherits:
-
Object
- Object
- Gearhead::Configuration
- Defined in:
- lib/gearhead/configuration.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#automount ⇒ Object
Returns the value of attribute automount.
-
#base_controller ⇒ Object
Returns the value of attribute base_controller.
-
#current_user ⇒ Object
Returns the value of attribute current_user.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#ignored_params ⇒ Object
Returns the value of attribute ignored_params.
-
#pagination ⇒ Object
Returns the value of attribute pagination.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#serialization ⇒ Object
Returns the value of attribute serialization.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/gearhead/configuration.rb', line 56 def initialize @actions = [:index, :create, :show, :update, :destroy] @current_user = nil @scope = nil @endpoint = "/gearhead" @ignored_params = [:id, :created_at, :updated_at] @automount = AutomountConfiguration.new @pagination = PaginationConfiguration.new @serialization = SerializationConfiguration.new @base_controller = 'ApplicationController' end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def actions @actions end |
#automount ⇒ Object
Returns the value of attribute automount.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def automount @automount end |
#base_controller ⇒ Object
Returns the value of attribute base_controller.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def base_controller @base_controller end |
#current_user ⇒ Object
Returns the value of attribute current_user.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def current_user @current_user end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def endpoint @endpoint end |
#ignored_params ⇒ Object
Returns the value of attribute ignored_params.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def ignored_params @ignored_params end |
#pagination ⇒ Object
Returns the value of attribute pagination.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def pagination @pagination end |
#scope ⇒ Object
Returns the value of attribute scope.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def scope @scope end |
#serialization ⇒ Object
Returns the value of attribute serialization.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def serialization @serialization end |
#serializer ⇒ Object
Returns the value of attribute serializer.
53 54 55 |
# File 'lib/gearhead/configuration.rb', line 53 def serializer @serializer end |