Class: Bugzilla::Product
- Inherits:
-
APITemplate
- Object
- Skeleton
- APITemplate
- Bugzilla::Product
- Defined in:
- lib/bugzilla/product.rb
Overview
Bugzilla::Product
Bugzilla::Product class is to access the Bugzilla::WebService::Product API that allows you to list the available Products and get information about them.
Instance Method Summary collapse
-
#accessible_products ⇒ Object
Bugzilla::Product#accessible_products.
-
#enterable_products ⇒ Object
Bugzilla::Product#enterable_products.
-
#selectable_products ⇒ Object
Bugzilla::Product#selectable_products.
Methods inherited from APITemplate
Methods inherited from Skeleton
Constructor Details
This class inherits a constructor from Bugzilla::APITemplate
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bugzilla::APITemplate
Instance Method Details
#accessible_products ⇒ Object
Bugzilla::Product#accessible_products
Returns Hash table for the products information that the user can search or enter bugs against. the Hash key is the product name and containing a Hash table which contains id, name, description, is_active, default_milestone, has_uncomfirmed, classification, components, versions and milestones. please see www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Product.html#get for more details.
88 89 90 91 |
# File 'lib/bugzilla/product.rb', line 88 def accessible_products ids = get_accessible_products Hash[*get(ids)['products'].map {|x| [x['name'], x]}.flatten] end |
#enterable_products ⇒ Object
Bugzilla::Product#enterable_products
Returns Hash table for the products information that the user can enter bugs against. the Hash key is the product name and containing a Hash table which contains id, name, description, is_active, default_milestone, has_uncomfirmed, classification, components, versions and milestones. please see www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Product.html#get for more details.
69 70 71 72 |
# File 'lib/bugzilla/product.rb', line 69 def enterable_products ids = get_enterable_products Hash[*get(ids)['products'].map {|x| [x['name'], x]}.flatten] end |
#selectable_products ⇒ Object
Bugzilla::Product#selectable_products
Returns Hash table for the products information that the user can search on. the Hash key is the product name and containing a Hash table which contains id, name, description, is_active, default_milestone, has_uncomfirmed, classification, components, versions and milestones. please see www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Product.html#get for more details.
50 51 52 53 |
# File 'lib/bugzilla/product.rb', line 50 def selectable_products ids = get_selectable_products Hash[*get(ids)['products'].map {|x| [x['name'], x]}.flatten] end |