Class: Flickr::Group
- Inherits:
-
Object
- Object
- Flickr::Group
- 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
-
#admin ⇒ Object
Returns the value of attribute admin.
-
#chatnsid ⇒ Object
Returns the value of attribute chatnsid.
-
#description ⇒ Object
Returns the value of attribute description.
-
#eighteenplus ⇒ Object
Returns the value of attribute eighteenplus.
-
#fully_fetched ⇒ Object
Returns the value of attribute fully_fetched.
-
#iconserver ⇒ Object
Returns the value of attribute iconserver.
-
#inchat ⇒ Object
Returns the value of attribute inchat.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nsid ⇒ Object
Returns the value of attribute nsid.
-
#online ⇒ Object
Returns the value of attribute online.
-
#photo_count ⇒ Object
Returns the value of attribute photo_count.
-
#privacy ⇒ Object
Returns the value of attribute privacy.
Instance Method Summary collapse
- #full_info ⇒ Object
-
#initialize(flickr, nsid, name = nil, members = nil, online = nil, chatnsid = nil, inchat = nil) ⇒ Group
constructor
A new instance of Group.
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
#admin ⇒ Object
Returns the value of attribute admin.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def admin @admin end |
#chatnsid ⇒ Object
Returns the value of attribute chatnsid.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def chatnsid @chatnsid end |
#description ⇒ Object
Returns the value of attribute description.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def description @description end |
#eighteenplus ⇒ Object
Returns the value of attribute eighteenplus.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def eighteenplus @eighteenplus end |
#fully_fetched ⇒ Object
Returns the value of attribute fully_fetched.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def fully_fetched @fully_fetched end |
#iconserver ⇒ Object
Returns the value of attribute iconserver.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def iconserver @iconserver end |
#inchat ⇒ Object
Returns the value of attribute inchat.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def inchat @inchat end |
#members ⇒ Object
Returns the value of attribute members.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def name @name end |
#nsid ⇒ Object
Returns the value of attribute nsid.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def nsid @nsid end |
#online ⇒ Object
Returns the value of attribute online.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def online @online end |
#photo_count ⇒ Object
Returns the value of attribute photo_count.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def photo_count @photo_count end |
#privacy ⇒ Object
Returns the value of attribute privacy.
559 560 561 |
# File 'lib/flickr/base.rb', line 559 def privacy @privacy end |
Instance Method Details
#full_info ⇒ Object
575 576 577 |
# File 'lib/flickr/base.rb', line 575 def full_info self.fully_fetched ? self : @flickr.groups.getInfo(self) end |