Class: Multisafepay::Object
- Inherits:
-
Object
- Object
- Multisafepay::Object
- Defined in:
- lib/multisafepay/object.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Object
constructor
A new instance of Object.
- #method_missing(method, *args, &block) ⇒ Object
- #respond_to_missing?(method, include_private = false) ⇒ Boolean
- #success? ⇒ Boolean
Constructor Details
#initialize(attributes) ⇒ Object
Returns a new instance of Object.
5 6 7 |
# File 'lib/multisafepay/object.rb', line 5 def initialize(attributes) @attributes = OpenStruct.new(attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#respond_to_missing?(method, include_private = false) ⇒ Boolean
18 19 20 |
# File 'lib/multisafepay/object.rb', line 18 def respond_to_missing?(method, include_private = false) true end |
#success? ⇒ Boolean
9 10 11 |
# File 'lib/multisafepay/object.rb', line 9 def success? @attributes.success end |