Class: Gateway::Requests::CommonRequest
- Inherits:
-
Object
- Object
- Gateway::Requests::CommonRequest
- Defined in:
- lib/gateway/requests/common_request.rb
Overview
Common request All request is needed to inheritance from it
Direct Known Subclasses
Instance Method Summary collapse
-
#attributes ⇒ Hash
Convert instance variables to hash.
Instance Method Details
#attributes ⇒ Hash
Convert instance variables to hash
15 16 17 18 19 20 21 |
# File 'lib/gateway/requests/common_request.rb', line 15 def attributes hash = {} instance_variables.each do |attr| hash[attr[1..-1]] = instance_variable_get attr end hash end |