Sha256: 7eb8897c6c4296be82b7daae88005b7668d3882df013986d7006a840a2711981

Contents?: true

Size: 568 Bytes

Versions: 38

Compression:

Stored size: 568 Bytes

Contents

class Flickr::Photos::License
  attr_accessor :id, :name, :url

  # create a new instance of a flickr photo license.
  # 
  # Params
  # * attributes (Required)
  #     a hash of attributes used to set the initial values of the license object
  def initialize(attributes)
    attributes.each do |k,v|
      send("#{k}=", v)
    end
  end
  
  def == o
    return false unless o.respond_to?(:id) && o.respond_to?(:name) && o.respond_to?(:url)
    return true if id == o.id && name == o.name && url == o.url
    false
  end
  
  def eql? o
    return self == o
  end
end

Version data entries

38 entries across 38 versions & 11 rubygems

Version Path
flickr_fu-0.3.2 lib/flickr/license.rb
fotonauts-flickr_fu-0.3.4 lib/flickr/license.rb
fotonauts-flickr_fu-0.3.3 lib/flickr/license.rb
fotonauts-flickr_fu-0.3.2 lib/flickr/license.rb
flickr_fu-0.3.1 lib/flickr/license.rb
tomk32-flickr_fu-0.3.4.1 lib/flickr/license.rb
userharmony-flickr_fu-0.3.6 lib/flickr/license.rb
tomk32-flickr_fu-0.3.3 lib/flickr/license.rb
tomk32-flickr_fu-0.3.2 lib/flickr/license.rb
tomk32-flickr_fu-0.3.1 lib/flickr/license.rb
robsharp-flickr_fu-0.3.0 lib/flickr/license.rb
mrpunkin-flickr_fu-0.3.0 lib/flickr/license.rb
flickr_fu-0.3.0 lib/flickr/license.rb
tomk32-flickr_fu-0.3.0 lib/flickr/license.rb
rmm5t-flickr_fu-0.3.5 lib/flickr/license.rb
rmm5t-flickr_fu-0.3.4 lib/flickr/license.rb
rmm5t-flickr_fu-0.3.3 lib/flickr/license.rb
rmm5t-flickr_fu-0.3.2 lib/flickr/license.rb