Module: DiscountNetwork
- Defined in:
- lib/discountnetwork.rb,
lib/discountnetwork/base.rb,
lib/discountnetwork/client.rb,
lib/discountnetwork/result.rb,
lib/discountnetwork/search.rb,
lib/discountnetwork/account.rb,
lib/discountnetwork/booking.rb,
lib/discountnetwork/session.rb,
lib/discountnetwork/password.rb,
lib/discountnetwork/provider.rb,
lib/discountnetwork/response.rb,
lib/discountnetwork/activation.rb,
lib/discountnetwork/destination.rb,
lib/discountnetwork/configuration.rb,
lib/discountnetwork/supplementary.rb
Defined Under Namespace
Modules: Session
Classes: Account, Activation, Base, Booking, Client, Configuration, Destination, Password, Provider, Response, ResponseObject, Result, Search, Supplementary
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
14
15
16
|
# File 'lib/discountnetwork/configuration.rb', line 14
def self.configuration
@configuration ||= Configuration.new
end
|
10
11
12
|
# File 'lib/discountnetwork/configuration.rb', line 10
def self.configure
yield configuration
end
|
.get_resource(end_point, attributes = {}) ⇒ Object
43
44
45
|
# File 'lib/discountnetwork/client.rb', line 43
def self.get_resource(end_point, attributes = {})
Client.new(:get, end_point, attributes).execute
end
|
.post_resource(end_point, attributes) ⇒ Object
47
48
49
|
# File 'lib/discountnetwork/client.rb', line 47
def self.post_resource(end_point, attributes)
Client.new(:post, end_point, attributes).execute
end
|
.put_resource(end_point, attributes) ⇒ Object
51
52
53
|
# File 'lib/discountnetwork/client.rb', line 51
def self.put_resource(end_point, attributes)
Client.new(:put, end_point, attributes).execute
end
|