Sha256: eec649eaae44cb113f6ccdfb922e522c2617fa3cd0c0916b9d35c5ee886149ac

Contents?: true

Size: 842 Bytes

Versions: 279

Compression:

Stored size: 842 Bytes

Contents

# frozen_string_literal: true

module Files
  class Status
    attr_reader :options, :attributes

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

    # int64 - Status HTTP code
    def code
      @attributes[:code]
    end

    # string - Error message
    def message
      @attributes[:message]
    end

    # string - Status message
    def status
      @attributes[:status]
    end

    # Auto - Additional data
    def data
      @attributes[:data]
    end

    # array - A list of api errors
    def errors
      @attributes[:errors]
    end

    # int64 - Required Clickwrap id
    def clickwrap_id
      @attributes[:clickwrap_id]
    end

    # string - Required Clickwrap body
    def clickwrap_body
      @attributes[:clickwrap_body]
    end
  end
end

Version data entries

279 entries across 279 versions & 1 rubygems

Version Path
files.com-1.1.6 lib/files.com/models/status.rb
files.com-1.1.5 lib/files.com/models/status.rb
files.com-1.1.4 lib/files.com/models/status.rb
files.com-1.1.3 lib/files.com/models/status.rb
files.com-1.1.2 lib/files.com/models/status.rb
files.com-1.1.1 lib/files.com/models/status.rb
files.com-1.1.0 lib/files.com/models/status.rb
files.com-1.0.495 lib/files.com/models/status.rb
files.com-1.0.494 lib/files.com/models/status.rb
files.com-1.0.493 lib/files.com/models/status.rb
files.com-1.0.492 lib/files.com/models/status.rb
files.com-1.0.491 lib/files.com/models/status.rb
files.com-1.0.490 lib/files.com/models/status.rb
files.com-1.0.489 lib/files.com/models/status.rb
files.com-1.0.488 lib/files.com/models/status.rb
files.com-1.0.487 lib/files.com/models/status.rb
files.com-1.0.486 lib/files.com/models/status.rb
files.com-1.0.485 lib/files.com/models/status.rb
files.com-1.0.484 lib/files.com/models/status.rb
files.com-1.0.483 lib/files.com/models/status.rb