Class: Guilded::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
# File 'lib/guilded/configuration.rb', line 8

def initialize
  set_defaults
end

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#jquery_google_url_templateObject

Returns the value of attribute jquery_google_url_template.



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

def jquery_google_url_template
  @jquery_google_url_template
end

#jquery_versionObject

Returns the value of attribute jquery_version.



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

def jquery_version
  @jquery_version
end

Instance Method Details

#jquery_google_url(version) ⇒ Object



12
13
14
# File 'lib/guilded/configuration.rb', line 12

def jquery_google_url( version )
  jquery_google_url_template.gsub /\{\{version\}\}/, version
end

#local_jquery_name(version, min) ⇒ Object



16
17
18
# File 'lib/guilded/configuration.rb', line 16

def local_jquery_name( version, min )
  "/assets/jquery-#{version}#{min ? '.min' : ''}.js"
end