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.



70
71
72
73
# File 'lib/rsf_services.rb', line 70

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)



77
78
79
# File 'lib/rsf_services.rb', line 77

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