Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/fargo/ext/struct.rb

Direct Known Subclasses

Fargo::Download, Fargo::Listing

Instance Method Summary collapse

Instance Method Details

#to_hObject



2
3
4
5
6
# File 'lib/fargo/ext/struct.rb', line 2

def to_h
  {}.tap do |h|
    members.zip(entries).each{ |k, v| h[k] = v }
  end
end