Class: Makasi::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/makasi/config.rb

Class Method Summary collapse

Class Method Details

.cloudsearch_api_versionObject



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_regionObject



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_indexObject



11
12
13
# File 'lib/makasi/config.rb', line 11

def self.cloudsearch_index
  rails_config.cloudsearch_index
end

.content_selectorObject



23
24
25
# File 'lib/makasi/config.rb', line 23

def self.content_selector
  rails_config.content_selector || "[data-indexable]"
end

.rails_configObject



3
4
5
# File 'lib/makasi/config.rb', line 3

def self.rails_config
  Rails.configuration.x.makasi
end

.resource_name_selectorObject



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

Yields:



7
8
9
# File 'lib/makasi/config.rb', line 7

def self.setup
  yield(rails_config)
end

.sitemap_urlObject



15
16
17
# File 'lib/makasi/config.rb', line 15

def self.sitemap_url
  rails_config.sitemap_url
end

.website_urlObject



19
20
21
# File 'lib/makasi/config.rb', line 19

def self.website_url
  rails_config.website_url
end