Class: ShipEasyI18n::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
13
# File 'lib/i18n/rails/configuration.rb', line 6

def initialize
  @default_chunk       = "index"
  @cdn_base_url        = "https://cdn.i18n.shipeasy.ai"
  @loader_url          = "https://cdn.i18n.shipeasy.ai/loader.js"
  @manifest_cache_ttl  = 60
  @label_file_cache_ttl = 3600
  @http_timeout        = 1
end

Instance Attribute Details

#cdn_base_urlObject

Returns the value of attribute cdn_base_url.



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

def cdn_base_url
  @cdn_base_url
end

#default_chunkObject

Returns the value of attribute default_chunk.



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

def default_chunk
  @default_chunk
end

#http_timeoutObject

Returns the value of attribute http_timeout.



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

def http_timeout
  @http_timeout
end

#label_file_cache_ttlObject

Returns the value of attribute label_file_cache_ttl.



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

def label_file_cache_ttl
  @label_file_cache_ttl
end

#loader_urlObject

Returns the value of attribute loader_url.



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

def loader_url
  @loader_url
end

#manifest_cache_ttlObject

Returns the value of attribute manifest_cache_ttl.



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

def manifest_cache_ttl
  @manifest_cache_ttl
end

#profileObject

Returns the value of attribute profile.



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

def profile
  @profile
end

#public_keyObject

Returns the value of attribute public_key.



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

def public_key
  @public_key
end