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.66 lib/files.com/models/status.rb
files.com-1.0.65 lib/files.com/models/status.rb
files.com-1.0.64 lib/files.com/models/status.rb
files.com-1.0.63 lib/files.com/models/status.rb
files.com-1.0.62 lib/files.com/models/status.rb
files.com-1.0.61 lib/files.com/models/status.rb
files.com-1.0.60 lib/files.com/models/status.rb
files.com-1.0.59 lib/files.com/models/status.rb
files.com-1.0.58 lib/files.com/models/status.rb
files.com-1.0.57 lib/files.com/models/status.rb
files.com-1.0.56 lib/files.com/models/status.rb
files.com-1.0.55 lib/files.com/models/status.rb
files.com-1.0.54 lib/files.com/models/status.rb
files.com-1.0.53 lib/files.com/models/status.rb
files.com-1.0.52 lib/files.com/models/status.rb
files.com-1.0.51 lib/files.com/models/status.rb
files.com-1.0.50 lib/files.com/models/status.rb
files.com-1.0.49 lib/files.com/models/status.rb
files.com-1.0.48 lib/files.com/models/status.rb
files.com-1.0.47 lib/files.com/models/status.rb