Class: OpenStax::Cnx::V1::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/openstax/cnx/v1.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



35
36
37
38
39
# File 'lib/openstax/cnx/v1.rb', line 35

def initialize
  @logger = OpenStax::Cnx::V1::NullLogger.new
  @ignore_history = true
  self.archive_url_base = "https://archive.cnx.org"
end

Instance Attribute Details

#archive_url_baseObject

Returns the value of attribute archive_url_base.



30
31
32
# File 'lib/openstax/cnx/v1.rb', line 30

def archive_url_base
  @archive_url_base
end

#ignore_historyObject

Returns the value of attribute ignore_history.



32
33
34
# File 'lib/openstax/cnx/v1.rb', line 32

def ignore_history
  @ignore_history
end

#loggerObject

Returns the value of attribute logger.



33
34
35
# File 'lib/openstax/cnx/v1.rb', line 33

def logger
  @logger
end

#webview_url_baseObject

Returns the value of attribute webview_url_base.



31
32
33
# File 'lib/openstax/cnx/v1.rb', line 31

def webview_url_base
  @webview_url_base
end