Class: XamplTestRedis::DroolingIdiotPersistedObject

Inherits:
Object
  • Object
show all
Includes:
Xampl::XamplPersistedObject
Defined in:
lib/xamplr/tests/redis/spec_helper.rb

Instance Attribute Summary collapse

Attributes included from Xampl::XamplPersistedObject

#load_needed, #must_be_mentioned, #persister

Attributes included from Xampl::XamplObject

#is_changed, #parents

Instance Method Summary collapse

Methods included from Xampl::XamplPersistedObject

#accessed, #changed, #changed?, #describe_yourself, #force_load, #init_xampl_object, #introduce_persister, #persist_required, #reset_contents

Methods included from Xampl::XamplObject

#===, #accessed, #add_parent, #changed, #changes_accepted, #compare_xampl, #copy_xampl, #dirty?, from_ruby, from_string, from_xml_file, from_xml_string, #ignore_when_no_index, #indexed_by, #init_attributes, #init_hook, #init_xampl_object, #inspect, #invalid, #invalidate, lookup_preferred_ns_prefix, #mark_changed_deep, #new_from_xml_file, #new_from_xml_string, #note_add_child, #note_add_to_parent, #note_adding_text_content, #note_attributes_initialised, #note_closed, #note_created, #note_initialise_attributes_with, #note_invalidate, #note_realised, #note_replacing, ns_preferred_prefix, #persist, #persist_required, #pp_xml, realise_from_xml_string, recover_from_string, #remove_ws_content, #schedule_a_deletion_if_needed, #should_schedule_delete?, #substituting_to_xml, #to_ruby, #to_s, #to_xml

Constructor Details

#initialize(pid) ⇒ DroolingIdiotPersistedObject

Returns a new instance of DroolingIdiotPersistedObject.



34
35
36
# File 'lib/xamplr/tests/redis/spec_helper.rb', line 34

def initialize(pid)
  @pid = pid
end

Instance Attribute Details

#pidObject

Returns the value of attribute pid.



32
33
34
# File 'lib/xamplr/tests/redis/spec_helper.rb', line 32

def pid
  @pid
end

Instance Method Details

#get_the_indexObject



38
39
40
# File 'lib/xamplr/tests/redis/spec_helper.rb', line 38

def get_the_index
  @pid
end

#persisted?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/xamplr/tests/redis/spec_helper.rb', line 42

def persisted?
  true
end