Class: Libgss::Outputs

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/libgss/outputs.rb

Instance Method Summary collapse

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