Class: Fathom::Property

Inherits:
Object
  • Object
show all
Extended by:
Plugins
Defined in:
lib/fathom/data/property.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Plugins

plugin, plugins

Constructor Details

#initialize(attrs = {}) ⇒ Property

Returns a new instance of Property.



24
25
26
# File 'lib/fathom/data/property.rb', line 24

def initialize(attrs={})
  @attributes = attrs
end

Class Method Details

.infer(obj) ⇒ Object



8
9
10
# File 'lib/fathom/data/property.rb', line 8

def infer(obj)
  new(:value => obj)
end