flickr_vision 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  class FlickrPhoto
2
2
 
3
- attr_accessor :id, :farm_id, :server_id, :secret
3
+ attr_accessor :id, :farm_id, :server_id, :secret, :title
4
4
 
5
5
  def small_square()
6
6
  return build_photo_url(@farm_id,@server_id,@id,@secret).gsub(".jpg","") + "_s" + ".jpg"
@@ -1,10 +1,11 @@
1
1
  class FlickrPhotoset
2
2
 
3
- attr_reader :id, :title
3
+ attr_reader :id, :title, :description
4
4
 
5
- def initialize(id, title)
5
+ def initialize(id, title, description)
6
6
  @id = id
7
7
  @title = title
8
+ @description = description
8
9
  end
9
10
 
10
11
  end
data/lib/flickr_vision.rb CHANGED
@@ -27,7 +27,8 @@ class FlickrVision
27
27
  doc.elements.each('rsp/photosets/photoset') do |photo_set|
28
28
  photoset_id = photo_set.attributes["id"]
29
29
  title = photo_set.elements["title"].text
30
- result.push(FlickrPhotoset.new(photoset_id, title))
30
+ description = photo_set.elements["description"].text
31
+ result.push(FlickrPhotoset.new(photoset_id, title, description))
31
32
  end
32
33
  return result
33
34
  end
@@ -53,6 +54,7 @@ class FlickrVision
53
54
  flickrPhoto.farm_id = photo.attributes["farm"]
54
55
  flickrPhoto.server_id = photo.attributes["server"]
55
56
  flickrPhoto.secret = photo.attributes["secret"]
57
+ flickrPhoto.title = photo.attributes["title"]
56
58
  photos.push(flickrPhoto)
57
59
  end
58
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickr_vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-23 00:00:00.000000000 Z
12
+ date: 2015-01-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A gem to access flickr
15
15
  email: koen@infovision.be
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 1.8.15
44
+ rubygems_version: 1.8.22
45
45
  signing_key:
46
46
  specification_version: 3
47
47
  summary: FlickrVision