Class: Flickr::Group

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

Constant Summary collapse

PRIVACY =

groups and 3 for open public groups.

[nil,:private,:invite,:public]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flickr, nsid, name = nil, members = nil, online = nil, chatnsid = nil, inchat = nil) ⇒ Group

Returns a new instance of Group.



563
564
565
566
567
568
569
570
571
572
573
# File 'lib/flickr/base.rb', line 563

def initialize(flickr,nsid, name=nil, members=nil, online=nil,
		chatnsid=nil, inchat=nil)
	@flickr = flickr
	@nsid = nsid
	@name = name
	@members = members
	@online = online
	@chatnsid = chatnsid
	@inchat = inchat
	@fully_fetched = false
end

Instance Attribute Details

#adminObject

Returns the value of attribute admin.



559
560
561
# File 'lib/flickr/base.rb', line 559

def admin
  @admin
end

#chatnsidObject

Returns the value of attribute chatnsid.



559
560
561
# File 'lib/flickr/base.rb', line 559

def chatnsid
  @chatnsid
end

#descriptionObject

Returns the value of attribute description.



559
560
561
# File 'lib/flickr/base.rb', line 559

def description
  @description
end

#eighteenplusObject

Returns the value of attribute eighteenplus.



559
560
561
# File 'lib/flickr/base.rb', line 559

def eighteenplus
  @eighteenplus
end

#fully_fetchedObject

Returns the value of attribute fully_fetched.



559
560
561
# File 'lib/flickr/base.rb', line 559

def fully_fetched
  @fully_fetched
end

#iconserverObject

Returns the value of attribute iconserver.



559
560
561
# File 'lib/flickr/base.rb', line 559

def iconserver
  @iconserver
end

#inchatObject

Returns the value of attribute inchat.



559
560
561
# File 'lib/flickr/base.rb', line 559

def inchat
  @inchat
end

#membersObject

Returns the value of attribute members.



559
560
561
# File 'lib/flickr/base.rb', line 559

def members
  @members
end

#nameObject

Returns the value of attribute name.



559
560
561
# File 'lib/flickr/base.rb', line 559

def name
  @name
end

#nsidObject

Returns the value of attribute nsid.



559
560
561
# File 'lib/flickr/base.rb', line 559

def nsid
  @nsid
end

#onlineObject

Returns the value of attribute online.



559
560
561
# File 'lib/flickr/base.rb', line 559

def online
  @online
end

#photo_countObject

Returns the value of attribute photo_count.



559
560
561
# File 'lib/flickr/base.rb', line 559

def photo_count
  @photo_count
end

#privacyObject

Returns the value of attribute privacy.



559
560
561
# File 'lib/flickr/base.rb', line 559

def privacy
  @privacy
end

Instance Method Details

#full_infoObject



575
576
577
# File 'lib/flickr/base.rb', line 575

def full_info
	self.fully_fetched ? self : @flickr.groups.getInfo(self)
end