Class: Avo::Configuration
- Inherits:
-
Object
- Object
- Avo::Configuration
- Defined in:
- lib/avo/configuration.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#default_view_type ⇒ Object
Returns the value of attribute default_view_type.
-
#hide_documentation_link ⇒ Object
Returns the value of attribute hide_documentation_link.
-
#hide_resource_overview_component ⇒ Object
Returns the value of attribute hide_resource_overview_component.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#per_page_steps ⇒ Object
Returns the value of attribute per_page_steps.
-
#root_path ⇒ Object
Returns the value of attribute root_path.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
-
#via_per_page ⇒ Object
Returns the value of attribute via_per_page.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/avo/configuration.rb', line 15 def initialize @root_path = '/avo' @app_name = Rails.application.class.to_s.split('::').first.underscore.humanize @timezone = 'UTC' @per_page = 24 @per_page_steps = [12, 24, 48, 72] @via_per_page = 8 @locale = 'us-US' @currency = 'USD' @default_view_type = :table @hide_resource_overview_component = false @hide_documentation_link = false end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
4 5 6 |
# File 'lib/avo/configuration.rb', line 4 def app_name @app_name end |
#currency ⇒ Object
Returns the value of attribute currency.
10 11 12 |
# File 'lib/avo/configuration.rb', line 10 def currency @currency end |
#default_view_type ⇒ Object
Returns the value of attribute default_view_type.
11 12 13 |
# File 'lib/avo/configuration.rb', line 11 def default_view_type @default_view_type end |
#hide_documentation_link ⇒ Object
Returns the value of attribute hide_documentation_link.
13 14 15 |
# File 'lib/avo/configuration.rb', line 13 def hide_documentation_link @hide_documentation_link end |
#hide_resource_overview_component ⇒ Object
Returns the value of attribute hide_resource_overview_component.
12 13 14 |
# File 'lib/avo/configuration.rb', line 12 def hide_resource_overview_component @hide_resource_overview_component end |
#locale ⇒ Object
Returns the value of attribute locale.
9 10 11 |
# File 'lib/avo/configuration.rb', line 9 def locale @locale end |
#per_page ⇒ Object
Returns the value of attribute per_page.
6 7 8 |
# File 'lib/avo/configuration.rb', line 6 def per_page @per_page end |
#per_page_steps ⇒ Object
Returns the value of attribute per_page_steps.
7 8 9 |
# File 'lib/avo/configuration.rb', line 7 def per_page_steps @per_page_steps end |
#root_path ⇒ Object
Returns the value of attribute root_path.
3 4 5 |
# File 'lib/avo/configuration.rb', line 3 def root_path @root_path end |
#timezone ⇒ Object
Returns the value of attribute timezone.
5 6 7 |
# File 'lib/avo/configuration.rb', line 5 def timezone @timezone end |
#via_per_page ⇒ Object
Returns the value of attribute via_per_page.
8 9 10 |
# File 'lib/avo/configuration.rb', line 8 def via_per_page @via_per_page end |