Class: Flickr::Group

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

Constant Summary collapse

PRIVACY =

The privacy attribute is 1 for private groups, 2 for invite-only public 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.



580
581
582
583
584
585
586
587
588
589
590
# File 'lib/flickr/base.rb', line 580

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.



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

def admin
  @admin
end

#chatnsidObject

Returns the value of attribute chatnsid.



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

def chatnsid
  @chatnsid
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#eighteenplusObject

Returns the value of attribute eighteenplus.



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

def eighteenplus
  @eighteenplus
end

#fully_fetchedObject

Returns the value of attribute fully_fetched.



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

def fully_fetched
  @fully_fetched
end

#iconserverObject

Returns the value of attribute iconserver.



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

def iconserver
  @iconserver
end

#inchatObject

Returns the value of attribute inchat.



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

def inchat
  @inchat
end

#membersObject

Returns the value of attribute members.



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

def members
  @members
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#nsidObject

Returns the value of attribute nsid.



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

def nsid
  @nsid
end

#onlineObject

Returns the value of attribute online.



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

def online
  @online
end

#photo_countObject

Returns the value of attribute photo_count.



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

def photo_count
  @photo_count
end

#privacyObject

Returns the value of attribute privacy.



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

def privacy
  @privacy
end

Instance Method Details

#full_infoObject



592
593
594
# File 'lib/flickr/base.rb', line 592

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