Class: RubyGems
Instance Attribute Summary collapse
-
#option ⇒ Object
readonly
Attribute reader.
Instance Method Summary collapse
-
#gems ⇒ Object
List of gems match with query.
-
#initialize(query) ⇒ RubyGems
constructor
Create constructor for RubyGems object.
Constructor Details
Instance Attribute Details
#option ⇒ Object (readonly)
Attribute reader
3 4 5 |
# File 'lib/gaea/lib/rubygems.rb', line 3 def option @option end |
Instance Method Details
#gems ⇒ Object
List of gems match with query
Examples
rgs = RubyGems.new('weather')
rgs.gems
# =>
+------+-----------------------------------------------+----------------------------------+-------------+-----------+
| Name | Info | URL | Authors | Downloads |
+------+-----------------------------------------------+----------------------------------+-------------+-----------+
| weer | Display the weather information of your city. | https://github.com/vinhnglx/weer | Vinh Nguyen | 134 |
+------+-----------------------------------------------+----------------------------------+-------------+-----------+
Returns the table
36 37 38 39 |
# File 'lib/gaea/lib/rubygems.rb', line 36 def gems # TODO: need to get more questions - Apply paginates parse_gems end |