Sha256: 87522371be86d0079aacd4e2d087f3ddb0bce8f1f1cc4d2df3ec8932c8ea1c67

Contents?: true

Size: 167 Bytes

Versions: 7

Compression:

Stored size: 167 Bytes

Contents

module Trumpet
  module TrumpetResource
    def to_h
      @@attributes.inject({}) { |hash, attribute| hash[attribute] = self.send(attribute); hash }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trumpet-trumpet-0.0.1 lib/trumpet/trumpet_resource.rb
trumpet-trumpet-0.0.2 lib/trumpet/trumpet_resource.rb
trumpet-trumpet-0.0.3 lib/trumpet/trumpet_resource.rb
trumpet-trumpet-0.0.4 lib/trumpet/trumpet_resource.rb
trumpet-trumpet-0.0.5 lib/trumpet/trumpet_resource.rb
trumpet-trumpet-0.0.6 lib/trumpet/trumpet_resource.rb
trumpet-trumpet-0.0.7 lib/trumpet/trumpet_resource.rb