Class: Flickr::Category

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path, pathids) ⇒ Category

Returns a new instance of Category.



535
536
537
538
539
540
541
542
# File 'lib/flickr/base.rb', line 535

def initialize(name,path,pathids)
  @name = name
  @path = path
  @pathids = pathids
  @groups = []
  @subcats = []
  @id = pathids.split('/').last
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



533
534
535
# File 'lib/flickr/base.rb', line 533

def groups
  @groups
end

#idObject (readonly)

Returns the value of attribute id.



533
534
535
# File 'lib/flickr/base.rb', line 533

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



533
534
535
# File 'lib/flickr/base.rb', line 533

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



533
534
535
# File 'lib/flickr/base.rb', line 533

def path
  @path
end

#pathidsObject (readonly)

Returns the value of attribute pathids.



533
534
535
# File 'lib/flickr/base.rb', line 533

def pathids
  @pathids
end

#subcatsObject (readonly)

Returns the value of attribute subcats.



533
534
535
# File 'lib/flickr/base.rb', line 533

def subcats
  @subcats
end