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