Class: Rdayone::Entry
- Inherits:
-
Object
- Object
- Rdayone::Entry
- Includes:
- AttributeMappable
- Defined in:
- lib/rdayone/entry.rb
Instance Attribute Summary collapse
-
#attribute_mappings ⇒ Object
readonly
Returns the value of attribute attribute_mappings.
-
#photo ⇒ Object
readonly
Returns the value of attribute photo.
-
#plist_hash ⇒ Object
readonly
Returns the value of attribute plist_hash.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(plist_hash = {}, photo = nil) ⇒ Entry
constructor
A new instance of Entry.
- #location ⇒ Object
Methods included from AttributeMappable
Constructor Details
#initialize(plist_hash = {}, photo = nil) ⇒ Entry
Returns a new instance of Entry.
7 8 9 10 11 12 13 14 15 |
# File 'lib/rdayone/entry.rb', line 7 def initialize(plist_hash = {}, photo = nil) @plist_hash = plist_hash @photo = photo @attribute_mappings = { :text => "Entry Text", :creation_date => "Creation Date", :identifier => "UUID" } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rdayone::AttributeMappable
Instance Attribute Details
#attribute_mappings ⇒ Object (readonly)
Returns the value of attribute attribute_mappings.
3 4 5 |
# File 'lib/rdayone/entry.rb', line 3 def attribute_mappings @attribute_mappings end |
#photo ⇒ Object (readonly)
Returns the value of attribute photo.
3 4 5 |
# File 'lib/rdayone/entry.rb', line 3 def photo @photo end |
#plist_hash ⇒ Object (readonly)
Returns the value of attribute plist_hash.
3 4 5 |
# File 'lib/rdayone/entry.rb', line 3 def plist_hash @plist_hash end |