Class: Net::Flickr::Tag

### Home Classes Methods

### In Files

- lib/net/flickr/tag.rb

### Parent

Object

### Methods

- ::new
- #machine?

### Class/Module Index

Quicksearch

- Net
- Net::Flickr
- Net::Flickr::APIError
- Net::Flickr::Auth
- Net::Flickr::InvalidResponse
- Net::Flickr::List
- Net::Flickr::ListError
- Net::Flickr::People
- Net::Flickr::Person
- Net::Flickr::Photo
- Net::Flickr::PhotoList
- Net::Flickr::Photos
- Net::Flickr::Tag

No matching classes.

# 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.