Class: Ace::Hitl::Models::HitlEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/ace/hitl/models/hitl_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#answerObject

Returns the value of attribute answer

Returns:

  • (Object)

    the current value of answer



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def answer
  @answer
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def content
  @content
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def created_at
  @created_at
end

#file_pathObject

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def file_path
  @file_path
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def id
  @id
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def kind
  @kind
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def 
  @metadata
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def path
  @path
end

#questionsObject

Returns the value of attribute questions

Returns:

  • (Object)

    the current value of questions



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def questions
  @questions
end

#special_folderObject

Returns the value of attribute special_folder

Returns:

  • (Object)

    the current value of special_folder



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def special_folder
  @special_folder
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def status
  @status
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def tags
  @tags
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



6
7
8
# File 'lib/ace/hitl/models/hitl_event.rb', line 6

def title
  @title
end

Instance Method Details

#answered?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/ace/hitl/models/hitl_event.rb', line 26

def answered?
  status.to_s == "answered" || ["answered"] == true
end

#shortcutObject



22
23
24
# File 'lib/ace/hitl/models/hitl_event.rb', line 22

def shortcut
  id[-3..]
end