Class: GovukPayApiClient::GetStatus
- Inherits:
-
Object
- Object
- GovukPayApiClient::GetStatus
- Includes:
- Api
- Defined in:
- lib/govuk_pay_api_client/get_status.rb
Instance Attribute Summary collapse
-
#fee ⇒ Object
Returns the value of attribute fee.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(fee = nil) ⇒ GetStatus
constructor
A new instance of GetStatus.
Methods included from Api
#get, included, #post, #response_body
Constructor Details
#initialize(fee = nil) ⇒ GetStatus
Returns a new instance of GetStatus.
6 7 8 9 |
# File 'lib/govuk_pay_api_client/get_status.rb', line 6 def initialize(fee = nil) raise RequiresFeeObject if fee.blank? @fee = fee end |
Instance Attribute Details
#fee ⇒ Object
Returns the value of attribute fee.
4 5 6 |
# File 'lib/govuk_pay_api_client/get_status.rb', line 4 def fee @fee end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/govuk_pay_api_client/get_status.rb', line 11 def call get parsed_response end |