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


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

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


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

def hidden
  @hidden
end

#nameString (readonly)

Returns the name of the tag.

Returns:

  • (String)

    the name of the tag


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

def name
  @name
end

Instance Method Details

#inspectObject


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

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