Class: Rodzilla::WebService

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_url, username, password, format = :json) ⇒ WebService

Returns a new instance of WebService.



18
19
20
21
22
23
# File 'lib/rodzilla.rb', line 18

def initialize(base_url, username, password, format=:json)
  @base_url = base_url
  @username = username
  @password = password
  @format   = format
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url.



16
17
18
# File 'lib/rodzilla.rb', line 16

def base_url
  @base_url
end

#formatObject

Returns the value of attribute format.



16
17
18
# File 'lib/rodzilla.rb', line 16

def format
  @format
end

#passwordObject

Returns the value of attribute password.



16
17
18
# File 'lib/rodzilla.rb', line 16

def password
  @password
end

#usernameObject

Returns the value of attribute username.



16
17
18
# File 'lib/rodzilla.rb', line 16

def username
  @username
end

Instance Method Details

#bugsObject



37
38
39
# File 'lib/rodzilla.rb', line 37

def bugs
  bugzilla_resource('Bug')
end

#bugzillaObject



29
30
31
# File 'lib/rodzilla.rb', line 29

def bugzilla
  bugzilla_resource('Bugzilla')
end

#classificationsObject



33
34
35
# File 'lib/rodzilla.rb', line 33

def classifications
  bugzilla_resource('Classification')
end

#productsObject



25
26
27
# File 'lib/rodzilla.rb', line 25

def products
  bugzilla_resource('Product')
end