Sha256: c35380873557e6e860332f00feb38cb556fd028e9830acbb88fc009e55c080ad

Contents?: true

Size: 1.13 KB

Versions: 46

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

module Files
  class InvoiceLineItem
    attr_reader :options, :attributes

    def initialize(attributes = {}, options = {})
      @attributes = attributes || {}
      @options = options || {}
    end

    # float - Invoice line item amount
    def amount
      @attributes[:amount]
    end

    # date-time - Invoice line item created at date/time
    def created_at
      @attributes[:created_at]
    end

    # string - Invoice line item description
    def description
      @attributes[:description]
    end

    # string - Invoice line item type
    def type
      @attributes[:type]
    end

    # date-time - Invoice line item service end date/time
    def service_end_at
      @attributes[:service_end_at]
    end

    # date-time - Invoice line item service start date/time
    def service_start_at
      @attributes[:service_start_at]
    end

    # date-time - Invoice line item updated date/time
    def updated_at
      @attributes[:updated_at]
    end

    # string - Plan name
    def plan
      @attributes[:plan]
    end

    # string - Site name
    def site
      @attributes[:site]
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
files.com-1.0.52 lib/files.com/models/invoice_line_item.rb
files.com-1.0.51 lib/files.com/models/invoice_line_item.rb
files.com-1.0.50 lib/files.com/models/invoice_line_item.rb
files.com-1.0.49 lib/files.com/models/invoice_line_item.rb
files.com-1.0.48 lib/files.com/models/invoice_line_item.rb
files.com-1.0.47 lib/files.com/models/invoice_line_item.rb
files.com-1.0.46 lib/files.com/models/invoice_line_item.rb
files.com-1.0.45 lib/files.com/models/invoice_line_item.rb
files.com-1.0.44 lib/files.com/models/invoice_line_item.rb
files.com-1.0.43 lib/files.com/models/invoice_line_item.rb
files.com-1.0.42 lib/files.com/models/invoice_line_item.rb
files.com-1.0.41 lib/files.com/models/invoice_line_item.rb
files.com-1.0.40 lib/files.com/models/invoice_line_item.rb
files.com-1.0.39 lib/files.com/models/invoice_line_item.rb
files.com-1.0.38 lib/files.com/models/invoice_line_item.rb
files.com-1.0.37 lib/files.com/models/invoice_line_item.rb
files.com-1.0.36 lib/files.com/models/invoice_line_item.rb
files.com-1.0.35 lib/files.com/models/invoice_line_item.rb
files.com-1.0.34 lib/files.com/models/invoice_line_item.rb
files.com-1.0.33 lib/files.com/models/invoice_line_item.rb