Class: Peddler::LegacyReports::Report
- Inherits:
-
Object
- Object
- Peddler::LegacyReports::Report
- Defined in:
- lib/peddler/legacy_reports.rb
Overview
A legacy report
Instance Attribute Summary collapse
-
#frequency ⇒ Object
Returns the value of attribute frequency.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#product_line ⇒ Object
Returns the value of attribute product_line.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(transport, name = nil, params = {}) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(transport, name = nil, params = {}) ⇒ Report
Returns a new instance of Report.
35 36 37 38 |
# File 'lib/peddler/legacy_reports.rb', line 35 def initialize(transport, name=nil, params={}) @transport, @name = transport, name params.each_pair{ |key, value| self.send "#{key}=", value } end |
Instance Attribute Details
#frequency ⇒ Object
Returns the value of attribute frequency.
33 34 35 |
# File 'lib/peddler/legacy_reports.rb', line 33 def frequency @frequency end |
#id ⇒ Object
Returns the value of attribute id.
33 34 35 |
# File 'lib/peddler/legacy_reports.rb', line 33 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
33 34 35 |
# File 'lib/peddler/legacy_reports.rb', line 33 def name @name end |
#product_line ⇒ Object
Returns the value of attribute product_line.
33 34 35 |
# File 'lib/peddler/legacy_reports.rb', line 33 def product_line @product_line end |
Instance Method Details
#body ⇒ Object
40 41 42 43 |
# File 'lib/peddler/legacy_reports.rb', line 40 def body return nil if @name == :upload && @id.nil? @body ||= download end |