Class: Troo::Comment
- Inherits:
-
Ohm::Model
- Object
- Ohm::Model
- Troo::Comment
- Includes:
- Ohm::DataTypes, ModelHelpers
- Defined in:
- lib/troo/models/comment.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#board ⇒ Object
[].
-
#card ⇒ Object
[].
-
#decorator(options = {}) ⇒ Object
[].
- #default? ⇒ FalseClass
-
#member ⇒ Object
[].
- #type ⇒ Symbol
Methods included from ModelHelpers
Class Method Details
.remote ⇒ Remote::Comment
23 24 25 |
# File 'lib/troo/models/comment.rb', line 23 def remote Remote::Comment end |
.type ⇒ Symbol
28 29 30 |
# File 'lib/troo/models/comment.rb', line 28 def type :comments end |
Instance Method Details
#board ⇒ Object
Returns [].
34 35 36 |
# File 'lib/troo/models/comment.rb', line 34 def board Troo::Board.retrieve(external_board_id) end |
#card ⇒ Object
Returns [].
39 40 41 |
# File 'lib/troo/models/comment.rb', line 39 def card Troo::Card.retrieve(external_card_id) end |
#decorator(options = {}) ⇒ Object
Returns [].
50 51 52 |
# File 'lib/troo/models/comment.rb', line 50 def decorator( = {}) Decorators::Resource.new(self, ) end |
#default? ⇒ FalseClass
55 56 57 |
# File 'lib/troo/models/comment.rb', line 55 def default? false end |
#member ⇒ Object
Returns [].
44 45 46 |
# File 'lib/troo/models/comment.rb', line 44 def member Troo::Member.retrieve(external_member_id) end |
#type ⇒ Symbol
60 61 62 |
# File 'lib/troo/models/comment.rb', line 60 def type self.class.type end |