Sha256: 66301a27e061c6aea32b16e953a550e464b9d2343e315c6bc2817004e8bec642
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
module PrintReleaf class Quote < Resource path "/quotes" action :find action :list action :create action :delete property :id property :account_id property :project_id property :transaction_id property :created_at, transform_with: Transforms::Date property :standard_pages, transform_with: Transforms::Integer property :trees, transform_with: Transforms::Float property :rate, transform_with: Transforms::Float property :price, transform_with: Transforms::Float property :items coerce_key :items, Array[QuoteItem] def account @account ||= Account.find(account_id) end def transaction return nil if transaction_id.nil? @transaction ||= Transaction.find(transaction_id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
printreleaf-1.5.0 | lib/printreleaf/quote.rb |