Class: Joey::Profile

Inherits:
Model
  • Object
show all
Defined in:
lib/joey/profile.rb

Direct Known Subclasses

Page, User

Instance Attribute Summary

Attributes inherited from Model

#client, #errors

Instance Method Summary collapse

Methods inherited from Model

define_properties, find, has_association, hash_populating_accessor, #initialize, recognize?

Constructor Details

This class inherits a constructor from Joey::Model

Instance Method Details

#to_sObject



17
18
19
# File 'lib/joey/profile.rb', line 17

def to_s
  name
end

#valid?Boolean

Returns:

  • (Boolean)


25
26
27
28
# File 'lib/joey/profile.rb', line 25

def valid?
  self.validate
  self.errors.empty?
end

#validateObject



21
22
23
# File 'lib/joey/profile.rb', line 21

def validate
  valid = true
end