Class: Zebra::Zpl::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/zebra/zpl/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Comment

Returns a new instance of Comment.



6
7
8
# File 'lib/zebra/zpl/comment.rb', line 6

def initialize(options = {})
  options.each_pair { |attribute, value| self.__send__ "#{attribute}=", value }
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/zebra/zpl/comment.rb', line 4

def data
  @data
end

Instance Method Details

#to_zplObject



10
11
12
# File 'lib/zebra/zpl/comment.rb', line 10

def to_zpl
  "^FX#{data}^FS"
end