Class: Ncba::Object
- Inherits:
-
Object
- Object
- Ncba::Object
- Defined in:
- lib/ncba/object.rb
Overview
Object
Direct Known Subclasses
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
Constructor Details
#initialize(attributes) ⇒ Object
Returns a new instance of Object.
8 9 10 |
# File 'lib/ncba/object.rb', line 8 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
17 18 19 |
# File 'lib/ncba/object.rb', line 17 def respond_to_missing?(_method, _include_private = false) true end |