Class: Attachment
- Inherits:
-
LogicalModel
- Object
- LogicalModel
- Attachment
- Defined in:
- app/models/attachment.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#file ⇒ Object
Returns the value of attribute file.
-
#name ⇒ Object
Returns the value of attribute name.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#public ⇒ Object
Returns the value of attribute public.
Instance Method Summary collapse
- #_type ⇒ Object
- #always_public? ⇒ Boolean
- #id ⇒ Object
- #id=(id) ⇒ Object
- #json_root ⇒ Object
- #new_record? ⇒ Boolean
- #to_key ⇒ Object
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'app/models/attachment.rb', line 10 def description @description end |
#file ⇒ Object
Returns the value of attribute file.
10 11 12 |
# File 'app/models/attachment.rb', line 10 def file @file end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'app/models/attachment.rb', line 10 def name @name end |
#primary ⇒ Object
Returns the value of attribute primary.
10 11 12 |
# File 'app/models/attachment.rb', line 10 def primary @primary end |
#public ⇒ Object
Returns the value of attribute public.
10 11 12 |
# File 'app/models/attachment.rb', line 10 def public @public end |
Instance Method Details
#_type ⇒ Object
37 38 39 |
# File 'app/models/attachment.rb', line 37 def _type self.class.name end |
#always_public? ⇒ Boolean
16 17 18 |
# File 'app/models/attachment.rb', line 16 def always_public? false end |
#id ⇒ Object
28 29 30 |
# File 'app/models/attachment.rb', line 28 def id self._id end |
#id=(id) ⇒ Object
32 33 34 |
# File 'app/models/attachment.rb', line 32 def id= id self._id = id end |
#json_root ⇒ Object
20 21 22 |
# File 'app/models/attachment.rb', line 20 def json_root :attachment end |
#new_record? ⇒ Boolean
12 13 14 |
# File 'app/models/attachment.rb', line 12 def new_record? self._id.blank? end |
#to_key ⇒ Object
24 25 26 |
# File 'app/models/attachment.rb', line 24 def to_key [self._id] end |