Class: OpenStax::Cnx::V1::Configuration
- Inherits:
-
Object
- Object
- OpenStax::Cnx::V1::Configuration
- Defined in:
- lib/openstax/cnx/v1.rb
Instance Attribute Summary collapse
-
#archive_url_base ⇒ Object
Returns the value of attribute archive_url_base.
-
#ignore_history ⇒ Object
Returns the value of attribute ignore_history.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#webview_url_base ⇒ Object
Returns the value of attribute webview_url_base.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_base ⇒ Object
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_history ⇒ Object
Returns the value of attribute ignore_history.
32 33 34 |
# File 'lib/openstax/cnx/v1.rb', line 32 def ignore_history @ignore_history end |
#logger ⇒ Object
Returns the value of attribute logger.
33 34 35 |
# File 'lib/openstax/cnx/v1.rb', line 33 def logger @logger end |
#webview_url_base ⇒ Object
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 |