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.132 lib/files.com/models/status.rb
files.com-1.0.131 lib/files.com/models/status.rb
files.com-1.0.130 lib/files.com/models/status.rb
files.com-1.0.129 lib/files.com/models/status.rb
files.com-1.0.128 lib/files.com/models/status.rb
files.com-1.0.127 lib/files.com/models/status.rb
files.com-1.0.126 lib/files.com/models/status.rb
files.com-1.0.125 lib/files.com/models/status.rb
files.com-1.0.124 lib/files.com/models/status.rb
files.com-1.0.123 lib/files.com/models/status.rb
files.com-1.0.122 lib/files.com/models/status.rb
files.com-1.0.121 lib/files.com/models/status.rb
files.com-1.0.120 lib/files.com/models/status.rb
files.com-1.0.119 lib/files.com/models/status.rb
files.com-1.0.118 lib/files.com/models/status.rb
files.com-1.0.117 lib/files.com/models/status.rb
files.com-1.0.116 lib/files.com/models/status.rb
files.com-1.0.115 lib/files.com/models/status.rb
files.com-1.0.114 lib/files.com/models/status.rb
files.com-1.0.113 lib/files.com/models/status.rb