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.
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_base ⇒ Object
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_history ⇒ Object
Returns the value of attribute ignore_history.
36 37 38 |
# File 'lib/openstax/cnx/v1.rb', line 36 def ignore_history @ignore_history end |
#logger ⇒ Object
Returns the value of attribute logger.
37 38 39 |
# File 'lib/openstax/cnx/v1.rb', line 37 def logger @logger end |
#webview_url_base ⇒ Object
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 |