Class: Magnolia::Tag

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

Overview

class Mark

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count.



474
475
476
# File 'lib/magnolia/magnolia.rb', line 474

def count
  @count
end

#nameObject

Returns the value of attribute name.



474
475
476
# File 'lib/magnolia/magnolia.rb', line 474

def name
  @name
end

Class Method Details

.from_xml(xml) ⇒ Object



477
478
479
480
481
482
# File 'lib/magnolia/magnolia.rb', line 477

def from_xml(xml)
  t = Tag.new
  t.name = xml.attributes['name']
  t.count = xml.attributes['count']
  t
end