Class: Everlog::Dom::Value::Animetick
Instance Method Summary
collapse
Methods included from Maybe
#maybe
#initialize, #parse_to_His
Instance Method Details
#count ⇒ Object
13
14
15
|
# File 'lib/everlog/dom/value/animetick.rb', line 13
def count
maybe(@response['count']).to_i
end
|
#sub_title ⇒ Object
9
10
11
|
# File 'lib/everlog/dom/value/animetick.rb', line 9
def sub_title
maybe(@response['sub_title']).to_s
end
|
#title ⇒ Object
5
6
7
|
# File 'lib/everlog/dom/value/animetick.rb', line 5
def title
maybe(@response['title']).to_s
end
|
#updated_at ⇒ Object
17
18
19
|
# File 'lib/everlog/dom/value/animetick.rb', line 17
def updated_at
DateTime.parse(@response['updated_at']).to_time
end
|
#updated_at_screen ⇒ Object
21
22
23
|
# File 'lib/everlog/dom/value/animetick.rb', line 21
def updated_at_screen
parse_to_His(maybe(@response['updated_at']).to_s)
end
|