Class: AMEE::Profile::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/amee/profile_object.rb

Direct Known Subclasses

Category, Item, ItemValue, Profile

Instance Attribute Summary collapse

Attributes inherited from Object

#connection, #created, #modified, #name, #path, #uid

Instance Method Summary collapse

Methods inherited from Object

#expire_cache, get_and_parse

Methods included from ParseHelper

#load_xml_doc, #node_value, #xmlpathpreamble

Constructor Details

#initialize(options = {}) ⇒ Object

Returns a new instance of Object.



8
9
10
11
12
# File 'lib/amee/profile_object.rb', line 8

def initialize(options = {})
  @profile_uid = options[:profile_uid]
  @profile_date = options[:profile_date]
  super
end

Instance Attribute Details

#profile_dateObject (readonly)

Returns the value of attribute profile_date.



15
16
17
# File 'lib/amee/profile_object.rb', line 15

def profile_date
  @profile_date
end

#profile_uidObject (readonly)

Returns the value of attribute profile_uid.



14
15
16
# File 'lib/amee/profile_object.rb', line 14

def profile_uid
  @profile_uid
end

Instance Method Details

#full_pathObject



17
18
19
# File 'lib/amee/profile_object.rb', line 17

def full_path
  "/profiles#{'/' if @profile_uid}#{@profile_uid}#{@path}"
end