Sha256: 5c864fff980e1adb4b4e65ab8659f98d52656429e046a1a924acdd0d1a243216

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

class Smile::Photo < Smile::Base
  
  class << self
    def from_xml( xml, session_id )
      hash = Hash.from_xml( xml )["rsp"]
      hash["images"]["image"].map do |image|
        image.merge!( :image_id => image["id"] )
        a = Smile::Photo.new( image )
        a.session_id = session_id
        a
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
cajun-smile-0.1.1 lib/smile/photo.rb
smile-0.1.1 lib/smile/photo.rb