Module: Osm

Defined in:
lib/osm.rb,
lib/osm.rb,
lib/osm/api.rb,
lib/osm/sms.rb,
lib/osm/term.rb,
lib/osm/badge.rb,
lib/osm/email.rb,
lib/osm/event.rb,
lib/osm/model.rb,
lib/osm/badges.rb,
lib/osm/budget.rb,
lib/osm/member.rb,
lib/osm/giftaid.rb,
lib/osm/invoice.rb,
lib/osm/meeting.rb,
lib/osm/myscout.rb,
lib/osm/section.rb,
lib/osm/activity.rb,
lib/osm/grouping.rb,
lib/osm/register.rb,
lib/osm/api_access.rb,
lib/osm/flexi_record.rb,
lib/osm/online_payment.rb

Defined Under Namespace

Classes: Activity, ActivityBadge, Api, ApiAccess, ArgumentIsInvalid, Badge, Badges, Budget, ChallengeBadge, ConnectionError, CoreBadge, Email, Error, Event, FlexiRecord, Forbidden, GiftAid, Grouping, Invoice, Meeting, Member, Model, Myscout, NoActiveRoles, ObjectIsInvalid, OnlinePayment, Register, Section, Sms, StagedBadge, Term

Class Method Summary collapse

Class Method Details

.configure(options) ⇒ Object

Configure the options used by classes in the module

Options Hash (options):

  • :api (Hash)

    Default options for accessing the API

  • :cache_config (Hash) — default: optional

    How classes in the module will cache data. Whilst this is optional you should remember that caching is required to use the OSM API.


85
86
87
88
89
# File 'lib/osm.rb', line 85

def self.configure(options)
  Osm::Model.configure(options[:cache])
  Osm::Api.configure(options[:api])
  nil
end