Class: RedmineRest::Models::Issue::Journal
- Inherits:
-
Object
- Object
- RedmineRest::Models::Issue::Journal
- 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
-
#broken ⇒ Object
readonly
for indication that something is wrong.
-
#created_on ⇒ Object
Returns the value of attribute created_on.
-
#details ⇒ Object
Returns the value of attribute details.
-
#id ⇒ Object
Returns the value of attribute id.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(params, _persisted) ⇒ Journal
constructor
A new instance of Journal.
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
#broken ⇒ Object (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_on ⇒ Object
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 |
#details ⇒ Object
Returns the value of attribute details.
13 14 15 |
# File 'lib/redmine_rest/models/issue/journal.rb', line 13 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/redmine_rest/models/issue/journal.rb', line 13 def id @id end |
#notes ⇒ Object
Returns the value of attribute notes.
13 14 15 |
# File 'lib/redmine_rest/models/issue/journal.rb', line 13 def notes @notes end |
#user ⇒ Object
Returns the value of attribute user.
13 14 15 |
# File 'lib/redmine_rest/models/issue/journal.rb', line 13 def user @user end |