Module: Getty
- Defined in:
- lib/getty.rb,
lib/getty/client.rb,
lib/getty/images.rb,
lib/getty/sessions.rb,
lib/getty/api_error.rb
Defined Under Namespace
Modules: Images, Sessions
Classes: APIError, Client
Constant Summary
collapse
- FIELDS =
[ :system_id, :system_pwd, :user_name,
:user_pwd, :connection_middleware ]
Class Method Summary
collapse
Class Method Details
23
24
25
26
|
# File 'lib/getty.rb', line 23
def configure
yield self
true
end
|
.filter(tips, term) ⇒ Object
13
14
15
16
17
18
19
20
21
|
# File 'lib/getty.rb', line 13
def filter tips, term
tip = []
unless tips.nil?
tips.items.each do |check_tip|
tip << check_tip if check_tip.text.downcase.include? term.downcase
end
end
Hashie::Mash.new({:count => tip.count, :items => tip })
end
|