Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Added timestamp attr to Photo.
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Dec 28, 2009
1 parent 5e21d6b commit c94e9f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby_picasa/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ class License < Objectify::ElementParser
attribute :user, 'gphoto:user'
attribute :nickname, 'gphoto:nickname'
attribute :location, 'gphoto:location'
attribute :timestamp, 'gphoto:timestamp'

flatten 'georss:where'

Expand Down
4 changes: 4 additions & 0 deletions spec/ruby_picasa/types_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@
{:thumbsize => '32c'}).returns(nil)
@photo.thumbnail('32c').should be_nil
end

it 'should have a timestamp' do
@photo.timestamp.should_not be_blank
end
end
end

Expand Down

0 comments on commit c94e9f0

Please sign in to comment.