Class: RSFServices::PackageMethod
- Inherits:
-
Object
- Object
- RSFServices::PackageMethod
- Defined in:
- lib/rsf_services.rb
Instance Method Summary collapse
-
#initialize(parent, type: :get) ⇒ PackageMethod
constructor
A new instance of PackageMethod.
Constructor Details
#initialize(parent, type: :get) ⇒ PackageMethod
15 16 17 18 |
# File 'lib/rsf_services.rb', line 15 def initialize(parent, type: :get) @parent = parent @parent.type = type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object (private)
22 23 24 |
# File 'lib/rsf_services.rb', line 22 def method_missing(method_name, *args) Package.new @parent, method_name.to_s end |