Module: ApiClientBulkLoader::Client::BulkLoadHelper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/api_client_bulk_loader/client/bulk_load_helper.rb
Overview
Included in the client base models
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (protected)
40 41 42 43 44 45 46 47 48 |
# File 'lib/api_client_bulk_loader/client/bulk_load_helper.rb', line 40 def method_missing(method, *args, &block) if method.to_s =~ /^(.*)=$/ set_attribute($1, args.first) elsif has_attribute?(method) read_attribute(method) else super end end |
Instance Method Details
#as_json(options = nil) ⇒ Object
33 34 35 36 |
# File 'lib/api_client_bulk_loader/client/bulk_load_helper.rb', line 33 def as_json(=nil) prepare_attributes_hash super() end |