Class: WeebSh::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/weeb/data.rb

Overview

Represents an Image tag for toph

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accountString (readonly) Also known as: creator, author

Returns the ID of the creator.

Returns:

  • (String)

    the ID of the creator



161
162
163
# File 'lib/weeb/data.rb', line 161

def 
  @account
end

#hiddentrue, false (readonly) Also known as: hidden?

Returns whether or not this tag can only be seen by the uploader.

Returns:

  • (true, false)

    whether or not this tag can only be seen by the uploader



157
158
159
# File 'lib/weeb/data.rb', line 157

def hidden
  @hidden
end

#nameString (readonly)

Returns the name of the tag.

Returns:

  • (String)

    the name of the tag



154
155
156
# File 'lib/weeb/data.rb', line 154

def name
  @name
end

Instance Method Details

#inspectObject



173
174
175
# File 'lib/weeb/data.rb', line 173

def inspect
  "#<WeebSh::Tag @name=#{@name.inspect} @hidden=#{@hidden.inspect} @account=#{@account.inspect}>"
end