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

Constructor Details

#initialize(options = {}) ⇒ Object

Returns a new instance of Object.



5
6
7
8
9
# File 'lib/amee/profile_object.rb', line 5

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.



12
13
14
# File 'lib/amee/profile_object.rb', line 12

def profile_date
  @profile_date
end

#profile_uidObject (readonly)

Returns the value of attribute profile_uid.



11
12
13
# File 'lib/amee/profile_object.rb', line 11

def profile_uid
  @profile_uid
end

Instance Method Details

#full_pathObject



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

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