class Iqdb::Client::Parser::Alt
Attributes
str[R]
Public Class Methods
new(str)
click to toggle source
# File lib/iqdb/client/parser/alt.rb, line 7 def initialize(str) @str = str end
Public Instance Methods
rating()
click to toggle source
# File lib/iqdb/client/parser/alt.rb, line 15 def rating @rating ||= str.scan(/Rating:\s(\w)\s/).then { |m| m.empty? ? '' : m[0][0] } end