Sha256: 03487084e337d963498f583325d6723bb442116182d25fe2fc703da4913614da

Contents?: true

Size: 350 Bytes

Versions: 8

Compression:

Stored size: 350 Bytes

Contents

module Animoto
  class Image < Animoto::Asset
    include Animoto::Visual
    include Animoto::Coverable

    attr_accessor :rotation
    
    def to_hash
      hash = super
      hash['rotation'] = rotation if rotation
      hash['spotlit'] = spotlit? unless @spotlit.nil?
      hash['cover'] = cover? unless @cover.nil?
      hash
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
animoto-0.0.0.alpha9 ./lib/animoto/image.rb
animoto-0.0.0.alpha8 ./lib/animoto/image.rb
animoto-0.0.0.alpha7 ./lib/animoto/image.rb
animoto-0.0.0.alpha6 ./lib/animoto/image.rb
animoto-0.0.0.alpha5 ./lib/animoto/image.rb
animoto-0.0.0.alpha4 ./lib/animoto/image.rb
animoto-0.0.0.alpha3 ./lib/animoto/image.rb
animoto-0.0.0.alpha2 ./lib/animoto/image.rb