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.



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

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.



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

def groups
  @groups
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#pathidsObject (readonly)

Returns the value of attribute pathids.



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

def pathids
  @pathids
end

#subcatsObject (readonly)

Returns the value of attribute subcats.



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

def subcats
  @subcats
end