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.



39
40
41
42
43
# File 'lib/openstax/cnx/v1.rb', line 39

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.



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

def archive_url_base
  @archive_url_base
end

#ignore_historyObject

Returns the value of attribute ignore_history.



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

def ignore_history
  @ignore_history
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#webview_url_baseObject

Returns the value of attribute webview_url_base.



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

def webview_url_base
  @webview_url_base
end