Class: OsuAPI::Response::Base

Inherits:
Object
  • Object
show all
Defined in:
(osu-api 0.1.0) osu-api/response.rb

Overview

Basic response class. Response class inheritance base from this class. Upon consuming define_endpoint with proper response_type option. A response class will be generated upon definition to proxy the output into the model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Base

Returns a new instance of Base.

Parameters:

  • data (Object)

    Raw JSON data to process. Model that underlies a MultiResultResponse class supports deserialization JSON data into specific Response model.

Instance Attribute Details

#resultArray<Object>, ... (readonly)

Returns Processed API result.

Returns:

  • (Array<Object>, Array<Hash>, Hash)

    Processed API result