Module: ZipMoney
- Extended by:
- ZipMoney
- Included in:
- ZipMoney
- Defined in:
- lib/zipMoney.rb,
lib/zipMoney/api.rb,
lib/zipMoney/util.rb,
lib/zipMoney/errors.rb,
lib/zipMoney/express.rb,
lib/zipMoney/request.rb,
lib/zipMoney/version.rb,
lib/zipMoney/webhook.rb,
lib/zipMoney/response.rb,
lib/zipMoney/api/query.rb,
lib/zipMoney/api/quote.rb,
lib/zipMoney/resources.rb,
lib/zipMoney/api/cancel.rb,
lib/zipMoney/api/refund.rb,
lib/zipMoney/api/capture.rb,
lib/zipMoney/api/checkout.rb,
lib/zipMoney/api/settings.rb,
lib/zipMoney/api/configure.rb,
lib/zipMoney/configuration.rb
Defined Under Namespace
Modules: Express, Request, WebHook Classes: Api, ApiError, Cancel, Capture, Checkout, Configuration, Configure, ExpressError, ExpressRequestError, ExpressResponseError, InvalidArgumentError, Query, Quote, Refund, RequestError, Resources, Response, ResponseError, Settings, Util, WebHookError, WebHookRequestError
Constant Summary collapse
- VERSION =
"1.0.6"
Instance Attribute Summary collapse
-
#_api ⇒ Object
Returns the value of attribute _api.
-
#_express ⇒ Object
Returns the value of attribute _express.
-
#_webhook ⇒ Object
Returns the value of attribute _webhook.
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#api ⇒ Object
Return the api instance.
-
#configure_api ⇒ Object
Configure the api.
-
#express ⇒ Object
Return the express api class.
-
#webhook ⇒ Object
Return the webhook class.
Instance Attribute Details
#_api ⇒ Object
Returns the value of attribute _api.
26 27 28 |
# File 'lib/zipMoney.rb', line 26 def _api @_api end |
#_express ⇒ Object
Returns the value of attribute _express.
26 27 28 |
# File 'lib/zipMoney.rb', line 26 def _express @_express end |
#_webhook ⇒ Object
Returns the value of attribute _webhook.
26 27 28 |
# File 'lib/zipMoney.rb', line 26 def _webhook @_webhook end |
#config ⇒ Object
Returns the value of attribute config.
26 27 28 |
# File 'lib/zipMoney.rb', line 26 def config @config end |
Instance Method Details
#api ⇒ Object
Return the api instance
29 30 31 32 33 |
# File 'lib/zipMoney.rb', line 29 def api @config = ZipMoney::Configuration configure_api if @_api.nil? @_api end |
#configure_api ⇒ Object
Configure the api
36 37 38 39 |
# File 'lib/zipMoney.rb', line 36 def configure_api = {:headers => {:content_type => :json}} @_api = ZipMoney::Api.new(@config,) end |
#express ⇒ Object
Return the express api class
49 50 51 52 53 |
# File 'lib/zipMoney.rb', line 49 def express @config = ZipMoney::Configuration @_express = ZipMoney::Express if @_express.nil? @_express end |
#webhook ⇒ Object
Return the webhook class
42 43 44 45 46 |
# File 'lib/zipMoney.rb', line 42 def webhook @config = ZipMoney::Configuration @_webhook = ZipMoney::WebHook if @_webhook.nil? @_webhook end |