Sha256: 1588352a24ef872e5746fa704a86eb9b2c640c0c185e1337c62d789d26f6bc02

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'pp'
require 'digest'
require 'rest-client'
require 'uuid'
UUID.state_file = false

require 'filer/config'
require 'filer/uploader'
require 'filer/attachment'
require 'filer/file_info'
require 'filer/activerecord'

class ApiError < StandardError
  attr_accessor :server_response

  def initialize(server_response)
    @server_response = server_response
  end

  def message
    @server_response["message"]
  end

  def http_code
    @server_response["httpCode"]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
progstr-filer-0.8.0 lib/progstr-filer.rb