Class: Rodzilla::WebService
- Inherits:
-
Object
- Object
- Rodzilla::WebService
- Defined in:
- lib/rodzilla.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#format ⇒ Object
Returns the value of attribute format.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #bugs ⇒ Object
- #bugzilla ⇒ Object
- #classifications ⇒ Object
-
#initialize(base_url, username, password, format = :json) ⇒ WebService
constructor
A new instance of WebService.
- #products ⇒ Object
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_url ⇒ Object
Returns the value of attribute base_url.
16 17 18 |
# File 'lib/rodzilla.rb', line 16 def base_url @base_url end |
#format ⇒ Object
Returns the value of attribute format.
16 17 18 |
# File 'lib/rodzilla.rb', line 16 def format @format end |
#password ⇒ Object
Returns the value of attribute password.
16 17 18 |
# File 'lib/rodzilla.rb', line 16 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
16 17 18 |
# File 'lib/rodzilla.rb', line 16 def username @username end |
Instance Method Details
#bugs ⇒ Object
37 38 39 |
# File 'lib/rodzilla.rb', line 37 def bugs bugzilla_resource('Bug') end |
#bugzilla ⇒ Object
29 30 31 |
# File 'lib/rodzilla.rb', line 29 def bugzilla bugzilla_resource('Bugzilla') end |
#classifications ⇒ Object
33 34 35 |
# File 'lib/rodzilla.rb', line 33 def classifications bugzilla_resource('Classification') end |
#products ⇒ Object
25 26 27 |
# File 'lib/rodzilla.rb', line 25 def products bugzilla_resource('Product') end |