Module: CompaniesHouseInputGateway::Requests::AbstractPerformer
- Included in:
- CompanyDataRequest, ConfirmationStatement, GetSubmissionStatus, ReturnofAllotmentShares
- Defined in:
- lib/companies_house_input_gateway/requests/abstract_performer.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'lib/companies_house_input_gateway/requests/abstract_performer.rb', line 6 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(client) ⇒ Object
10 11 12 |
# File 'lib/companies_house_input_gateway/requests/abstract_performer.rb', line 10 def initialize(client) @client = client end |
#perform(data = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/companies_house_input_gateway/requests/abstract_performer.rb', line 14 def perform(data = {}) require_submission_form = self.class.submission_form validate_params(data, Util.demodulize(self.class)) check_type = Util.underscore(Util.demodulize(self.class)) response = @client.perform_check(check_type, data, require_submission_form) @client.config[:raw] ? response : response_body(response) end |