Module: PogoPlug::HashInitializer
- Included in:
- Device, File, FileListing, Service
- Defined in:
- lib/pogoplug/hash_initializer.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*h) ⇒ Object
3 4 5 6 7 |
# File 'lib/pogoplug/hash_initializer.rb', line 3 def initialize(*h) if h.length == 1 && h.first.kind_of?(Hash) h.first.each { |k,v| send("#{k}=",v) } end end |