Class: Record

Inherits:
Object
  • Object
show all
Includes:
Parse
Defined in:
lib/issue_db/models/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Parse

#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_afterObject (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_beforeObject (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

#dataObject (readonly)

Returns the value of attribute data.


10
11
12
# File 'lib/issue_db/models/record.rb', line 10

def data
  @data
end

#keyObject (readonly)

Returns the value of attribute key.


10
11
12
# File 'lib/issue_db/models/record.rb', line 10

def key
  @key
end

#source_dataObject (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