Class: Flickr::Category
- Inherits:
-
Object
- Object
- Flickr::Category
- Defined in:
- lib/flickr/base.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#pathids ⇒ Object
readonly
Returns the value of attribute pathids.
-
#subcats ⇒ Object
readonly
Returns the value of attribute subcats.
Instance Method Summary collapse
-
#initialize(name, path, pathids) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(name, path, pathids) ⇒ Category
Returns a new instance of Category.
534 535 536 537 538 539 540 541 |
# File 'lib/flickr/base.rb', line 534 def initialize(name,path,pathids) @name = name @path = path @pathids = pathids @groups = [] @subcats = [] @id = pathids.split('/').last end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
532 533 534 |
# File 'lib/flickr/base.rb', line 532 def groups @groups end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
532 533 534 |
# File 'lib/flickr/base.rb', line 532 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
532 533 534 |
# File 'lib/flickr/base.rb', line 532 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
532 533 534 |
# File 'lib/flickr/base.rb', line 532 def path @path end |
#pathids ⇒ Object (readonly)
Returns the value of attribute pathids.
532 533 534 |
# File 'lib/flickr/base.rb', line 532 def pathids @pathids end |
#subcats ⇒ Object (readonly)
Returns the value of attribute subcats.
532 533 534 |
# File 'lib/flickr/base.rb', line 532 def subcats @subcats end |