Class: RSFServices::PackageMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/rsf_services.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, type: :get) ⇒ PackageMethod

Returns a new instance of PackageMethod.



14
15
16
17
# File 'lib/rsf_services.rb', line 14

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)



21
22
23
# File 'lib/rsf_services.rb', line 21

def method_missing(method_name, *args)
  Package.new @parent, method_name.to_s
end