Class: Avo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/avo/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_nameObject

Returns the value of attribute app_name.



4
5
6
# File 'lib/avo/configuration.rb', line 4

def app_name
  @app_name
end

#currencyObject

Returns the value of attribute currency.



10
11
12
# File 'lib/avo/configuration.rb', line 10

def currency
  @currency
end

#default_view_typeObject

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

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_componentObject

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

#localeObject

Returns the value of attribute locale.



9
10
11
# File 'lib/avo/configuration.rb', line 9

def locale
  @locale
end

#per_pageObject

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_stepsObject

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_pathObject

Returns the value of attribute root_path.



3
4
5
# File 'lib/avo/configuration.rb', line 3

def root_path
  @root_path
end

#timezoneObject

Returns the value of attribute timezone.



5
6
7
# File 'lib/avo/configuration.rb', line 5

def timezone
  @timezone
end

#via_per_pageObject

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