Sha256: 970c5719a8104295c66848103d9e44d475116f904f2b1baef5bbd259c779c62d

Contents?: true

Size: 608 Bytes

Versions: 60

Compression:

Stored size: 608 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

    def data
      @attributes[:data]
    end

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

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
files.com-1.0.46 lib/files.com/models/status.rb
files.com-1.0.45 lib/files.com/models/status.rb
files.com-1.0.44 lib/files.com/models/status.rb
files.com-1.0.43 lib/files.com/models/status.rb
files.com-1.0.42 lib/files.com/models/status.rb
files.com-1.0.41 lib/files.com/models/status.rb
files.com-1.0.40 lib/files.com/models/status.rb
files.com-1.0.39 lib/files.com/models/status.rb
files.com-1.0.38 lib/files.com/models/status.rb
files.com-1.0.37 lib/files.com/models/status.rb
files.com-1.0.36 lib/files.com/models/status.rb
files.com-1.0.35 lib/files.com/models/status.rb
files.com-1.0.34 lib/files.com/models/status.rb
files.com-1.0.33 lib/files.com/models/status.rb
files.com-1.0.32 lib/files.com/models/status.rb
files.com-1.0.31 lib/files.com/models/status.rb
files.com-1.0.30 lib/files.com/models/status.rb
files.com-1.0.29 lib/files.com/models/status.rb
files.com-1.0.28 lib/files.com/models/status.rb
files.com-1.0.27 lib/files.com/models/status.rb