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.246 lib/files.com/models/status.rb
files.com-1.0.245 lib/files.com/models/status.rb
files.com-1.0.244 lib/files.com/models/status.rb
files.com-1.0.243 lib/files.com/models/status.rb
files.com-1.0.242 lib/files.com/models/status.rb
files.com-1.0.241 lib/files.com/models/status.rb
files.com-1.0.240 lib/files.com/models/status.rb
files.com-1.0.239 lib/files.com/models/status.rb
files.com-1.0.238 lib/files.com/models/status.rb
files.com-1.0.237 lib/files.com/models/status.rb
files.com-1.0.236 lib/files.com/models/status.rb
files.com-1.0.235 lib/files.com/models/status.rb
files.com-1.0.234 lib/files.com/models/status.rb
files.com-1.0.233 lib/files.com/models/status.rb
files.com-1.0.232 lib/files.com/models/status.rb
files.com-1.0.231 lib/files.com/models/status.rb
files.com-1.0.230 lib/files.com/models/status.rb
files.com-1.0.229 lib/files.com/models/status.rb
files.com-1.0.228 lib/files.com/models/status.rb
files.com-1.0.227 lib/files.com/models/status.rb