Class: SimplyStored::Couch::AssociationProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/simply_stored/couch/association_property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/simply_stored/couch/association_property.rb', line 4

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/simply_stored/couch/association_property.rb', line 4

def options
  @options
end

Instance Method Details

#association?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/simply_stored/couch/association_property.rb', line 21

def association?
  true
end

#build(object, json) ⇒ Object



10
11
# File 'lib/simply_stored/couch/association_property.rb', line 10

def build(object, json)
end

#dirty?(object) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/simply_stored/couch/association_property.rb', line 6

def dirty?(object)
  false
end

#serialize(json, object) ⇒ Object Also known as: value



13
14
# File 'lib/simply_stored/couch/association_property.rb', line 13

def serialize(json, object)
end

#supports_dirty?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/simply_stored/couch/association_property.rb', line 17

def supports_dirty?
  false
end