Sha256: 381d850b9d3ef52dca4a04e9cd958e62c769a70d54db77a6747c04f82837d6f8

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

module PrintReleaf
  class VolumePeriod < Resource
    path "/volume"

    action :list

    property :account_id
    property :date,  transform_with: Transforms::Date
    property :pages, transform_with: Transforms::Integer
    property :trees, transform_with: Transforms::Float

    def account
      @account ||= Account.find(account_id)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
printreleaf-1.5.0 lib/printreleaf/volume_period.rb
printreleaf-1.3.2 lib/printreleaf/volume_period.rb
printreleaf-1.3.1 lib/printreleaf/volume_period.rb
printreleaf-1.3.0 lib/printreleaf/volume_period.rb
printreleaf-1.0.3 lib/printreleaf/volume_period.rb
printreleaf-1.0.2 lib/printreleaf/volume_period.rb
printreleaf-1.0.1 lib/printreleaf/volume_period.rb