Sha256: 3d9f51a5d647c32e1a8ad4ef82e383435f6888734de6e515e0eccea3a15b94a3

Contents?: true

Size: 827 Bytes

Versions: 88

Compression:

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

    # 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

88 entries across 88 versions & 1 rubygems

Version Path
files.com-1.0.206 lib/files.com/models/status.rb
files.com-1.0.205 lib/files.com/models/status.rb
files.com-1.0.204 lib/files.com/models/status.rb
files.com-1.0.203 lib/files.com/models/status.rb
files.com-1.0.202 lib/files.com/models/status.rb
files.com-1.0.201 lib/files.com/models/status.rb
files.com-1.0.200 lib/files.com/models/status.rb
files.com-1.0.199 lib/files.com/models/status.rb
files.com-1.0.198 lib/files.com/models/status.rb
files.com-1.0.197 lib/files.com/models/status.rb
files.com-1.0.196 lib/files.com/models/status.rb
files.com-1.0.195 lib/files.com/models/status.rb
files.com-1.0.194 lib/files.com/models/status.rb
files.com-1.0.193 lib/files.com/models/status.rb
files.com-1.0.192 lib/files.com/models/status.rb
files.com-1.0.191 lib/files.com/models/status.rb
files.com-1.0.190 lib/files.com/models/status.rb
files.com-1.0.189 lib/files.com/models/status.rb
files.com-1.0.188 lib/files.com/models/status.rb
files.com-1.0.187 lib/files.com/models/status.rb