Class: Bugzilla::APITemplate

Inherits:
Skeleton show all
Defined in:
lib/bugzilla/api_template.rb

Overview

rdoc

Bugzilla::APITemplate

Direct Known Subclasses

Bug, Classification, Group, Product, User

Instance Method Summary collapse

Constructor Details

#initialize(iface) ⇒ APITemplate

Returns a new instance of APITemplate.



30
31
32
33
34
# File 'lib/bugzilla/api_template.rb', line 30

def initialize(iface)
  super
  # iface is a Bugzilla::XMLRPC object
  @bz = Bugzilla.new(iface)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object

def initialize



36
37
38
39
40
41
42
# File 'lib/bugzilla/api_template.rb', line 36

def method_missing(symbol, *args)
  if @bz.respond_to?(symbol)
    @bz.__send__(symbol, *args)
  else
    super
  end
end