Class: Record
Instance Attribute Summary collapse
-
#body_after ⇒ Object
readonly
Returns the value of attribute body_after.
-
#body_before ⇒ Object
readonly
Returns the value of attribute body_before.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#source_data ⇒ Object
readonly
Returns the value of attribute source_data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Record
constructor
A new instance of Record.
Methods included from Parse
Constructor Details
#initialize(data) ⇒ Record
Returns a new instance of Record.
11 12 13 14 15 |
# File 'lib/issue_db/models/record.rb', line 11 def initialize(data) @key = data.title @source_data = data parse! end |
Instance Attribute Details
#body_after ⇒ Object (readonly)
Returns the value of attribute body_after.
10 11 12 |
# File 'lib/issue_db/models/record.rb', line 10 def body_after @body_after end |
#body_before ⇒ Object (readonly)
Returns the value of attribute body_before.
10 11 12 |
# File 'lib/issue_db/models/record.rb', line 10 def body_before @body_before end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/issue_db/models/record.rb', line 10 def data @data end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
10 11 12 |
# File 'lib/issue_db/models/record.rb', line 10 def key @key end |
#source_data ⇒ Object (readonly)
Returns the value of attribute source_data.
10 11 12 |
# File 'lib/issue_db/models/record.rb', line 10 def source_data @source_data end |