Class: Joey::Profile
- Inherits:
-
Model
- Object
- Hashie::Dash
- Model
- Joey::Profile
show all
- Defined in:
- lib/joey/profile.rb
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_s ⇒ Object
17
18
19
|
# File 'lib/joey/profile.rb', line 17
def to_s
name
end
|
#valid? ⇒ Boolean
25
26
27
28
|
# File 'lib/joey/profile.rb', line 25
def valid?
self.validate
self.errors.empty?
end
|
#validate ⇒ Object
21
22
23
|
# File 'lib/joey/profile.rb', line 21
def validate
valid = true
end
|