Sha256: 98626f2eebd64240702e331f4991c99ed9c40943de513176c057c12b229ecd47

Contents?: true

Size: 630 Bytes

Versions: 67

Compression:

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

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

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

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
files.com-1.0.112 lib/files.com/models/status.rb
files.com-1.0.111 lib/files.com/models/status.rb
files.com-1.0.110 lib/files.com/models/status.rb
files.com-1.0.109 lib/files.com/models/status.rb
files.com-1.0.108 lib/files.com/models/status.rb
files.com-1.0.107 lib/files.com/models/status.rb
files.com-1.0.106 lib/files.com/models/status.rb
files.com-1.0.105 lib/files.com/models/status.rb
files.com-1.0.104 lib/files.com/models/status.rb
files.com-1.0.103 lib/files.com/models/status.rb
files.com-1.0.102 lib/files.com/models/status.rb
files.com-1.0.101 lib/files.com/models/status.rb
files.com-1.0.100 lib/files.com/models/status.rb
files.com-1.0.99 lib/files.com/models/status.rb
files.com-1.0.98 lib/files.com/models/status.rb
files.com-1.0.97 lib/files.com/models/status.rb
files.com-1.0.96 lib/files.com/models/status.rb
files.com-1.0.95 lib/files.com/models/status.rb
files.com-1.0.94 lib/files.com/models/status.rb
files.com-1.0.93 lib/files.com/models/status.rb