Class: Media::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/media/label.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Label

Returns a new instance of Label.



3
4
5
# File 'lib/media/label.rb', line 3

def initialize(args)
  @name = args.fetch(:name, [])
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/media/label.rb', line 7

def to_s
  "[#{@name}]"
end