Class: Libgss::Outputs
- Inherits:
-
Object
- Object
- Libgss::Outputs
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/libgss/outputs.rb
Instance Method Summary collapse
- #get(id) ⇒ Object
-
#initialize(array) ⇒ Outputs
constructor
A new instance of Outputs.
Constructor Details
#initialize(array) ⇒ Outputs
Returns a new instance of Outputs.
12 13 14 |
# File 'lib/libgss/outputs.rb', line 12 def initialize(array) @array = array end |
Instance Method Details
#get(id) ⇒ Object
19 20 21 |
# File 'lib/libgss/outputs.rb', line 19 def get(id) @array.detect{|output| output["id"] == id} end |