class Ruqqus::Title
Describes a title associated with a username.
Public Class Methods
new(data)
click to toggle source
Creates a new instance of the {Title} class.
@param data [Hash] the parsed JSON payload defining this instance.
# File lib/ruqqus/types/title.rb, line 28 def initialize(data) @data = data || raise(ArgumentError, 'data cannot be nil') end
Public Instance Methods
color()
click to toggle source
# File lib/ruqqus/types/title.rb, line 40 def color @data[:color] end
id()
click to toggle source
# File lib/ruqqus/types/title.rb, line 32 def id @data[:id] end
kind()
click to toggle source
# File lib/ruqqus/types/title.rb, line 44 def kind @data[:kind] end
text()
click to toggle source
# File lib/ruqqus/types/title.rb, line 36 def text @data[:text] end