Class: Bugzilla::APITemplate

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

Overview

Bugzilla::APITemplate

Direct Known Subclasses

Bug, Group, Product, User

Instance Method Summary collapse

Constructor Details

#initialize(iface) ⇒ APITemplate

Returns a new instance of APITemplate.



34
35
36
37
38
# File 'lib/bugzilla/api_tmpl.rb', line 34

def initialize(iface)
  super

  @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



40
41
42
43
44
45
46
# File 'lib/bugzilla/api_tmpl.rb', line 40

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