Class: Shushu::RateCodeReport

Inherits:
Report
  • Object
show all
Defined in:
lib/models/report.rb

Instance Attribute Summary collapse

Attributes inherited from Report

#billable_units, #from, #to

Instance Method Summary collapse

Methods inherited from Report

#fetch, #report, #total

Constructor Details

#initialize(rate_code_slug, from, to) ⇒ RateCodeReport

Returns a new instance of RateCodeReport.



59
60
61
# File 'lib/models/report.rb', line 59

def initialize(rate_code_slug, from, to)
  @rate_code_slug, @from, @to = rate_code_slug, from, to
end

Instance Attribute Details

#rate_code_slugObject

Returns the value of attribute rate_code_slug.



57
58
59
# File 'lib/models/report.rb', line 57

def rate_code_slug
  @rate_code_slug
end

Instance Method Details

#resourceObject



63
64
65
# File 'lib/models/report.rb', line 63

def resource
  "/rate_codes/#{rate_code_slug}/report"
end