Class: UEncode::Response

Inherits:
Object
  • Object
show all
Includes:
AttrSetting
Defined in:
lib/uencode/response.rb

Defined Under Namespace

Classes: BadRequesError, BadRequestError, NotAuthorizedError, NotFoundError, ServerError, UnacceptableError, UnknownError

Constant Summary collapse

ATTRIBUTES =
[:code, :data]

Instance Method Summary collapse

Methods included from AttrSetting

included, #set_attributes

Constructor Details

#initialize(options) ⇒ Response

Returns a new instance of Response.



17
18
19
20
# File 'lib/uencode/response.rb', line 17

def initialize(options)
  check_response_code options[:code], options[:data]
  super
end