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



72
73
74
75
# File 'lib/rsf_services.rb', line 72

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)



79
80
81
# File 'lib/rsf_services.rb', line 79

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