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.



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

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.



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

def admin
  @admin
end

#chatnsidObject

Returns the value of attribute chatnsid.



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

def chatnsid
  @chatnsid
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#eighteenplusObject

Returns the value of attribute eighteenplus.



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

def eighteenplus
  @eighteenplus
end

#fully_fetchedObject

Returns the value of attribute fully_fetched.



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

def fully_fetched
  @fully_fetched
end

#iconserverObject

Returns the value of attribute iconserver.



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

def iconserver
  @iconserver
end

#inchatObject

Returns the value of attribute inchat.



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

def inchat
  @inchat
end

#membersObject

Returns the value of attribute members.



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

def members
  @members
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#nsidObject

Returns the value of attribute nsid.



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

def nsid
  @nsid
end

#onlineObject

Returns the value of attribute online.



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

def online
  @online
end

#photo_countObject

Returns the value of attribute photo_count.



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

def photo_count
  @photo_count
end

#privacyObject

Returns the value of attribute privacy.



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

def privacy
  @privacy
end

Instance Method Details

#full_infoObject



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

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