Module: RedboothRuby::Operations::Meta

Defined in:
lib/redbooth-ruby/operations/meta.rb

Instance Method Summary collapse

Instance Method Details

#metadataHash

Returns a hash with the object metadata

Returns:

  • (Hash)

    the object metadata



7
8
9
10
11
12
# File 'lib/redbooth-ruby/operations/meta.rb', line 7

def 
  response = RedboothRuby.request(:get, nil, 'metadata',
                                  { target_id: id, target_type: self.class.to_s },
                                  options_for_request({}))
  response.data
end