| Conditions | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | require 'atom' |
||
| 13 | def load_message(data) |
||
| 14 | raise 'Data is not a hash' unless data.is_a? Hash |
||
| 15 | |||
| 16 | @entry = Atom::Entry.new do |e| |
||
| 17 | e.title = build_title data |
||
| 18 | e.links << Atom::Link.new(href: data['uri']) |
||
| 19 | e.id = data['id'] |
||
| 20 | e.updated = Time.parse(data['lastModifiedTime']) |
||
| 21 | e.summary = data['subject'] |
||
| 22 | end |
||
| 23 | end |
||
| 24 | |||
| 55 |