Module: Quark::Publisher
- Defined in:
- lib/quark/publisher.rb,
lib/quark/publisher/asset.rb,
lib/quark/publisher/request.rb,
lib/quark/publisher/version.rb,
lib/quark/publisher/collection.rb,
lib/quark/publisher/saved_query.rb,
lib/quark/publisher/asset_binary.rb,
lib/quark/publisher/service_error.rb
Defined Under Namespace
Modules: Asset, AssetBinary, Collection, Request, SavedQuery Classes: Configuration, ServiceError
Constant Summary collapse
- VERSION =
"0.2.0"
Class Attribute Summary collapse
-
.configuration ⇒ Quark::Publisher::Configuration
Method used to fetch the configuration object.
Instance Attribute Summary collapse
-
#configuration ⇒ Quark::Publisher::Configuration
Object used to configure the Quark::Author library.
Class Method Summary collapse
-
.configure {|Quark::Publisher::Configuration| ... } ⇒ Object
Configuration block used to configure the library.
-
.reset ⇒ Quark::Publisher::Configuration
Method used to reset configuration.
-
.test_configure {|configuration| ... } ⇒ Quark::Publisher::Configuration
Method used during testing to temporarily set configurations and then immediately reset the configuration.
Class Attribute Details
.configuration ⇒ Quark::Publisher::Configuration
Method used to fetch the configuration object
34 35 36 |
# File 'lib/quark/publisher.rb', line 34 def configuration @configuration end |
Instance Attribute Details
#configuration ⇒ Quark::Publisher::Configuration
Returns Object used to configure the Quark::Author library.
|
|
# File 'lib/quark/publisher.rb', line 13
|
Class Method Details
.configure {|Quark::Publisher::Configuration| ... } ⇒ Object
Configuration block used to configure the library.
26 27 28 29 |
# File 'lib/quark/publisher.rb', line 26 def self.configure yield configuration self.configuration end |
.reset ⇒ Quark::Publisher::Configuration
Method used to reset configuration. Primarily required during testing.
41 42 43 |
# File 'lib/quark/publisher.rb', line 41 def self.reset @configuration = Configuration.new end |
.test_configure {|configuration| ... } ⇒ Quark::Publisher::Configuration
Method used during testing to temporarily set configurations and then immediately reset the configuration
55 56 57 58 |
# File 'lib/quark/publisher.rb', line 55 def self.test_configure yield configuration self.reset end |