Class: Upman::Service::InstallHistory
- Inherits:
-
Object
- Object
- Upman::Service::InstallHistory
- Defined in:
- lib/upman/services/install_history.rb
Instance Attribute Summary collapse
-
#since ⇒ Object
Returns the value of attribute since.
Instance Method Summary collapse
Instance Attribute Details
#since ⇒ Object
Returns the value of attribute since.
5 6 7 |
# File 'lib/upman/services/install_history.rb', line 5 def since @since end |
Instance Method Details
#get(since) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/upman/services/install_history.rb', line 7 def get(since) @since = since result = [] lines = fetch_history.split("\n") lines.each do |line| fill_up(result, line) end result.reverse! end |