Module: Octoparts

Defined in:
lib/octoparts.rb,
lib/octoparts/error.rb,
lib/octoparts/client.rb,
lib/octoparts/builder.rb,
lib/octoparts/version.rb,
lib/octoparts/response.rb,
lib/octoparts/model/cookie.rb,
lib/octoparts/configuration.rb,
lib/octoparts/model/part_request.rb,
lib/octoparts/model/request_meta.rb,
lib/octoparts/model/cache_control.rb,
lib/octoparts/model/part_response.rb,
lib/octoparts/model/response_meta.rb,
lib/octoparts/model/aggregate_request.rb,
lib/octoparts/model/aggregate_response.rb,
lib/octoparts/model/part_request_param.rb,
lib/octoparts/representer/aggregate_request_representer.rb,
lib/octoparts/representer/aggregate_response_representer.rb

Defined Under Namespace

Modules: Model, Representer Classes: AggregateRequestBuilder, ArgumentError, Client, ClientError, Configuration, Error, Response, ResponseError, ServerError

Constant Summary collapse

VERSION =
"0.1.3"

Class Method Summary collapse

Class Method Details

.build_aggregate_request(&block) ⇒ Object



21
22
23
24
# File 'lib/octoparts.rb', line 21

def build_aggregate_request(&block)
  builder = Octoparts::AggregateRequestBuilder.new(&block)
  builder.build
end

.configurationObject



13
14
15
# File 'lib/octoparts.rb', line 13

def configuration
  @configuration ||= Octoparts::Configuration.new
end

.configure(&block) ⇒ Object



17
18
19
# File 'lib/octoparts.rb', line 17

def configure(&block)
  configuration.instance_eval(&block)
end