Sha256: 035979b82090ff06d90df66e9678ebab1775a619652e0ab51edff1ec4a17dc83

Contents?: true

Size: 835 Bytes

Versions: 26

Compression:

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

    # 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

26 entries across 26 versions & 1 rubygems

Version Path
files.com-1.0.158 lib/files.com/models/status.rb
files.com-1.0.157 lib/files.com/models/status.rb
files.com-1.0.156 lib/files.com/models/status.rb
files.com-1.0.155 lib/files.com/models/status.rb
files.com-1.0.154 lib/files.com/models/status.rb
files.com-1.0.153 lib/files.com/models/status.rb
files.com-1.0.152 lib/files.com/models/status.rb
files.com-1.0.151 lib/files.com/models/status.rb
files.com-1.0.150 lib/files.com/models/status.rb
files.com-1.0.149 lib/files.com/models/status.rb
files.com-1.0.148 lib/files.com/models/status.rb
files.com-1.0.147 lib/files.com/models/status.rb
files.com-1.0.146 lib/files.com/models/status.rb
files.com-1.0.145 lib/files.com/models/status.rb
files.com-1.0.144 lib/files.com/models/status.rb
files.com-1.0.143 lib/files.com/models/status.rb
files.com-1.0.142 lib/files.com/models/status.rb
files.com-1.0.141 lib/files.com/models/status.rb
files.com-1.0.140 lib/files.com/models/status.rb
files.com-1.0.139 lib/files.com/models/status.rb