Class: Troo::Comment

Inherits:
Ohm::Model
  • Object
show all
Includes:
Ohm::DataTypes, ModelHelpers
Defined in:
lib/troo/models/comment.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ModelHelpers

included

Class Method Details

.remoteRemote::Comment

Returns:



23
24
25
# File 'lib/troo/models/comment.rb', line 23

def remote
  Remote::Comment
end

.typeSymbol

Returns:

  • (Symbol)


28
29
30
# File 'lib/troo/models/comment.rb', line 28

def type
  :comments
end

Instance Method Details

#boardObject

Returns [].

Returns:



34
35
36
# File 'lib/troo/models/comment.rb', line 34

def board
  Troo::Board.retrieve(external_board_id)
end

#cardObject

Returns [].

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 [].

Parameters:

  • (Hash)

Returns:



50
51
52
# File 'lib/troo/models/comment.rb', line 50

def decorator(options = {})
  Decorators::Resource.new(self, options)
end

#default?FalseClass

Returns:

  • (FalseClass)


55
56
57
# File 'lib/troo/models/comment.rb', line 55

def default?
  false
end

#memberObject

Returns [].

Returns:



44
45
46
# File 'lib/troo/models/comment.rb', line 44

def member
  Troo::Member.retrieve(external_member_id)
end

#typeSymbol

Returns:

  • (Symbol)


60
61
62
# File 'lib/troo/models/comment.rb', line 60

def type
  self.class.type
end