Module: Fixably

Defined in:
lib/fixably.rb,
lib/fixably/config.rb,
lib/fixably/logger.rb,
lib/fixably/actions.rb,
lib/fixably/version.rb,
lib/fixably/encoding.rb,
lib/fixably/action_policy.rb,
lib/fixably/authorization.rb,
lib/fixably/resources/user.rb,
lib/fixably/resources/order.rb,
lib/fixably/resources/queue.rb,
lib/fixably/resources/device.rb,
lib/fixably/resources/status.rb,
lib/fixably/load_from_response.rb,
lib/fixably/resources/customer.rb,
lib/fixably/resources/location.rb,
lib/fixably/application_resource.rb,
lib/fixably/resource_lazy_loader.rb,
lib/fixably/create_has_many_record.rb,
lib/fixably/argument_parameterisation.rb,
lib/fixably/active_resource/paginated_collection.rb

Defined Under Namespace

Modules: Actions, ActiveResource, ArgumentParameterisation, Authorization, Encoding, LoadFromResponse, Logger Classes: ActionPolicy, ApplicationResource, Config, CreateHasManyRecord, Customer, Device, Location, Order, Queue, ResourceLazyLoader, Status, UnsupportedError, User

Constant Summary collapse

VERSION =
"0.6.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



24
25
26
# File 'lib/fixably.rb', line 24

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:



26
27
28
29
30
31
32
# File 'lib/fixably.rb', line 26

def configure(&block)
  if block.nil?
    raise ArgumentError, "configure must be called with a block"
  end

  yield config
end

.loggerObject



34
35
36
# File 'lib/fixably.rb', line 34

def logger
  config.logger
end