class HornOfPlenty::Adapters::Github::Parsers::Board
Attributes
raw[RW]
Public Class Methods
new(raw:)
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 15 def initialize(raw:) self.raw = raw end
to_model(raw_item)
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 43 def self.to_model(raw_item) return NullObjects::Board.instance unless raw_item Models::Board.from_parser(parser: new(raw: raw_item)) end
Public Instance Methods
created_at()
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 35 def created_at @created_at ||= parse_time(raw, 'created_at') end
description()
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 31 def description @description ||= parse_text(raw, 'body') end
id()
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 19 def id @id ||= parse_text(raw, 'number') end
title()
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 27 def title @title ||= parse_text(raw, 'name') end
updated_at()
click to toggle source
# File lib/horn_of_plenty/adapters/github/parsers/board.rb, line 39 def updated_at @updated_at ||= parse_time(raw, 'updated_at') end