Parent

Methods

Net::Flickr::Tag

A Flickr photo tag.

Don't instantiate this class yourself.

Attributes

author[R]
id[R]
name[R]
raw[R]

Public Class Methods

new(flickr, tag_xml) click to toggle source
# File lib/net/flickr/tag.rb, line 38
def initialize(flickr, tag_xml)
  @flickr = flickr
  
  @id          = tag_xml['id']
  @author      = tag_xml['author']
  @raw         = tag_xml['raw']
  @name        = tag_xml.inner_text
  @machine_tag = tax_xml['machine_tag'] == '1'
end

Public Instance Methods

machine?() click to toggle source

true if this tag is a machine tag, false otherwise.

# File lib/net/flickr/tag.rb, line 49
def machine?
  return @machine_tag
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.