Class: ThinkNear::Category
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- ThinkNear::Category
- Defined in:
- lib/think_near/category.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.all ⇒ Object
3 4 5 6 7 |
# File 'lib/think_near/category.rb', line 3 def self.all Client.get_categories.map do |category_name| new :name => category_name end end |