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.26 lib/files.com/models/status.rb
files.com-1.1.25 lib/files.com/models/status.rb
files.com-1.1.24 lib/files.com/models/status.rb
files.com-1.1.23 lib/files.com/models/status.rb
files.com-1.1.22 lib/files.com/models/status.rb
files.com-1.1.21 lib/files.com/models/status.rb
files.com-1.1.20 lib/files.com/models/status.rb
files.com-1.1.19 lib/files.com/models/status.rb
files.com-1.1.18 lib/files.com/models/status.rb
files.com-1.1.17 lib/files.com/models/status.rb
files.com-1.1.16 lib/files.com/models/status.rb
files.com-1.1.15 lib/files.com/models/status.rb
files.com-1.1.14 lib/files.com/models/status.rb
files.com-1.1.13 lib/files.com/models/status.rb
files.com-1.1.12 lib/files.com/models/status.rb
files.com-1.1.11 lib/files.com/models/status.rb
files.com-1.1.10 lib/files.com/models/status.rb
files.com-1.1.9 lib/files.com/models/status.rb
files.com-1.1.8 lib/files.com/models/status.rb
files.com-1.1.7 lib/files.com/models/status.rb