Class: RedmineRest::Models::Issue::Journal

Inherits:
Object
  • Object
show all
Defined in:
lib/redmine_rest/models/issue/journal.rb,
lib/redmine_rest/models/issue/journal_detail.rb

Overview

Class that represents issue journals.

Redmine REST provides journals only through ‘/issues.xml?include=journals`, so there’s no reason to use active_resource

Defined Under Namespace

Classes: Detail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params, _persisted) ⇒ Journal

Returns a new instance of Journal.



18
19
20
21
22
# File 'lib/redmine_rest/models/issue/journal.rb', line 18

def initialize(params, _persisted)
  params.each { |attr, value| public_send("#{attr}=", value) }
rescue
  @broken = true
end

Instance Attribute Details

#brokenObject (readonly)

for indication that something is wrong



16
17
18
# File 'lib/redmine_rest/models/issue/journal.rb', line 16

def broken
  @broken
end

#created_onObject

Returns the value of attribute created_on.



13
14
15
# File 'lib/redmine_rest/models/issue/journal.rb', line 13

def created_on
  @created_on
end

#detailsObject

Returns the value of attribute details.



13
14
15
# File 'lib/redmine_rest/models/issue/journal.rb', line 13

def details
  @details
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/redmine_rest/models/issue/journal.rb', line 13

def id
  @id
end

#notesObject

Returns the value of attribute notes.



13
14
15
# File 'lib/redmine_rest/models/issue/journal.rb', line 13

def notes
  @notes
end

#userObject

Returns the value of attribute user.



13
14
15
# File 'lib/redmine_rest/models/issue/journal.rb', line 13

def user
  @user
end