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.



551
552
553
554
555
556
557
558
# File 'lib/flickr/base.rb', line 551

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.



549
550
551
# File 'lib/flickr/base.rb', line 549

def groups
  @groups
end

#idObject (readonly)

Returns the value of attribute id.



549
550
551
# File 'lib/flickr/base.rb', line 549

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



549
550
551
# File 'lib/flickr/base.rb', line 549

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



549
550
551
# File 'lib/flickr/base.rb', line 549

def path
  @path
end

#pathidsObject (readonly)

Returns the value of attribute pathids.



549
550
551
# File 'lib/flickr/base.rb', line 549

def pathids
  @pathids
end

#subcatsObject (readonly)

Returns the value of attribute subcats.



549
550
551
# File 'lib/flickr/base.rb', line 549

def subcats
  @subcats
end