Class: Montague::Reporter::Publisher
- Inherits:
-
Object
- Object
- Montague::Reporter::Publisher
- Defined in:
- lib/montague/reporter/publisher.rb
Overview
Publisher reporter
Instance Method Summary collapse
-
#initialize(response) ⇒ Publisher
constructor
A new instance of Publisher.
- #report ⇒ Montague::Model::PublisherReport
Constructor Details
#initialize(response) ⇒ Publisher
7 8 9 10 11 |
# File 'lib/montague/reporter/publisher.rb', line 7 def initialize(response) @response = response @header_extractor = Montague::XMLExtractor::Header.new response.to_s @publisher_extractor = Montague::XMLExtractor::Publisher.new response.to_s end |
Instance Method Details
#report ⇒ Montague::Model::PublisherReport
14 15 16 17 18 19 20 |
# File 'lib/montague/reporter/publisher.rb', line 14 def report h = Montague::Model::PublisherReport.new h.http_response = @response h.header = @header_extractor.model h.publisher = @publisher_extractor.model h end |