Sha256: bbe8d0e5ee715d15848f7bb910a578d0af8654cbd587d1f65ba8efff6264f612

Contents?: true

Size: 1.13 KB

Versions: 468

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

    # double - 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

468 entries across 468 versions & 1 rubygems

Version Path
files.com-1.0.479 lib/files.com/models/invoice_line_item.rb
files.com-1.0.478 lib/files.com/models/invoice_line_item.rb
files.com-1.0.477 lib/files.com/models/invoice_line_item.rb
files.com-1.0.476 lib/files.com/models/invoice_line_item.rb
files.com-1.0.475 lib/files.com/models/invoice_line_item.rb
files.com-1.0.474 lib/files.com/models/invoice_line_item.rb
files.com-1.0.473 lib/files.com/models/invoice_line_item.rb
files.com-1.0.472 lib/files.com/models/invoice_line_item.rb
files.com-1.0.471 lib/files.com/models/invoice_line_item.rb
files.com-1.0.470 lib/files.com/models/invoice_line_item.rb
files.com-1.0.469 lib/files.com/models/invoice_line_item.rb
files.com-1.0.468 lib/files.com/models/invoice_line_item.rb
files.com-1.0.467 lib/files.com/models/invoice_line_item.rb
files.com-1.0.466 lib/files.com/models/invoice_line_item.rb
files.com-1.0.465 lib/files.com/models/invoice_line_item.rb
files.com-1.0.464 lib/files.com/models/invoice_line_item.rb
files.com-1.0.463 lib/files.com/models/invoice_line_item.rb
files.com-1.0.462 lib/files.com/models/invoice_line_item.rb
files.com-1.0.461 lib/files.com/models/invoice_line_item.rb
files.com-1.0.460 lib/files.com/models/invoice_line_item.rb