Module: Giftrocket

Defined in:
lib/giftrocket/base.rb,
lib/giftrocket/gift.rb,
lib/giftrocket/user.rb,
lib/giftrocket/embed.rb,
lib/giftrocket/error.rb,
lib/giftrocket/order.rb,
lib/giftrocket/style.rb,
lib/giftrocket/catalog.rb,
lib/giftrocket/payment.rb,
lib/giftrocket/request.rb,
lib/giftrocket/version.rb,
lib/giftrocket/campaign.rb,
lib/giftrocket/organization.rb,
lib/giftrocket/funding_source.rb,
lib/giftrocket/organization_member.rb

Defined Under Namespace

Classes: Campaign, Catalog, Embed, Error, FundingSource, Gift, Order, Organization, OrganizationMember, Payment, Request, Style, User

Constant Summary collapse

VERSION =
'2.0.0'
@@config =
{
  base_api_uri: 'https://www.giftrocket.com/api/v1/'
}

Class Method Summary collapse

Class Method Details

.configObject



6
7
8
# File 'lib/giftrocket/base.rb', line 6

def self.config
  @@config
end

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

Yields:



10
11
12
# File 'lib/giftrocket/base.rb', line 10

def self.configure
  yield @@config
end

.default_optionsObject

Access token



15
16
17
# File 'lib/giftrocket/base.rb', line 15

def self.default_options
  {access_token: @@config[:access_token]}
end