Class: Makasi::Config
- Inherits:
-
Object
- Object
- Makasi::Config
- Defined in:
- lib/makasi/config.rb
Class Method Summary collapse
- .cloudsearch_api_version ⇒ Object
- .cloudsearch_aws_region ⇒ Object
- .cloudsearch_index ⇒ Object
- .content_selector ⇒ Object
- .rails_config ⇒ Object
- .resource_name_selector ⇒ Object
- .setup {|rails_config| ... } ⇒ Object
- .sitemap_url ⇒ Object
- .website_url ⇒ Object
Class Method Details
.cloudsearch_api_version ⇒ Object
31 32 33 |
# File 'lib/makasi/config.rb', line 31 def self.cloudsearch_api_version rails_config.cloudsearch_api_version.presence || "2013-01-01" end |
.cloudsearch_aws_region ⇒ Object
35 36 37 |
# File 'lib/makasi/config.rb', line 35 def self.cloudsearch_aws_region rails_config.cloudsearch_aws_region.presence || "us-east-1" end |
.cloudsearch_index ⇒ Object
11 12 13 |
# File 'lib/makasi/config.rb', line 11 def self.cloudsearch_index rails_config.cloudsearch_index end |
.content_selector ⇒ Object
23 24 25 |
# File 'lib/makasi/config.rb', line 23 def self.content_selector rails_config.content_selector || "[data-indexable]" end |
.rails_config ⇒ Object
3 4 5 |
# File 'lib/makasi/config.rb', line 3 def self.rails_config Rails.configuration.x.makasi end |
.resource_name_selector ⇒ Object
27 28 29 |
# File 'lib/makasi/config.rb', line 27 def self.resource_name_selector rails_config.resource_name_selector || "[data-title]" end |
.setup {|rails_config| ... } ⇒ Object
7 8 9 |
# File 'lib/makasi/config.rb', line 7 def self.setup yield(rails_config) end |
.sitemap_url ⇒ Object
15 16 17 |
# File 'lib/makasi/config.rb', line 15 def self.sitemap_url rails_config.sitemap_url end |
.website_url ⇒ Object
19 20 21 |
# File 'lib/makasi/config.rb', line 19 def self.website_url rails_config.website_url end |