Module: HitfoxCouponApi

Extended by:
HitfoxCouponApi
Included in:
HitfoxCouponApi
Defined in:
lib/hitfox_coupon_api.rb,
lib/hitfox_coupon_api/user.rb,
lib/hitfox_coupon_api/order.rb,
lib/hitfox_coupon_api/client.rb,
lib/hitfox_coupon_api/coupon.rb,
lib/hitfox_coupon_api/application.rb,
lib/hitfox_coupon_api/configuration.rb

Defined Under Namespace

Classes: Application, Client, Configuration, Coupon, Order, User

Instance Method Summary collapse

Instance Method Details

#application(identifier) ⇒ Object



23
24
25
# File 'lib/hitfox_coupon_api.rb', line 23

def application(identifier)
  Application.new(identifier)
end

#configurationObject



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

def configuration
  @configuration ||= Configuration.new
end

#configureObject



17
18
19
20
21
# File 'lib/hitfox_coupon_api.rb', line 17

def configure
  config = configuration
  block_given? ? yield(config) : config
  config
end