Class: Phantom::SVG::Frame

Inherits:
Object
  • Object
show all
Defined in:
lib/phantom/frame.rb

Overview

Frame class for “Key Frames” implementation in SVG

Defined Under Namespace

Classes: ViewBox

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Frame

Returns a new instance of Frame.



7
8
9
10
11
12
13
14
# File 'lib/phantom/frame.rb', line 7

def initialize(options = {})
  set_duration(options[:duration])
  set_surfaces(options[:surfaces])
  set_width(options[:width])
  set_height(options[:height])
  set_viewbox(options[:viewbox])
  set_namespaces(options[:namespaces])
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



5
6
7
# File 'lib/phantom/frame.rb', line 5

def duration
  @duration
end

#heightObject

Returns the value of attribute height.



5
6
7
# File 'lib/phantom/frame.rb', line 5

def height
  @height
end

#namespacesObject

Returns the value of attribute namespaces.



5
6
7
# File 'lib/phantom/frame.rb', line 5

def namespaces
  @namespaces
end

#surfacesObject

Returns the value of attribute surfaces.



5
6
7
# File 'lib/phantom/frame.rb', line 5

def surfaces
  @surfaces
end

#viewboxObject

Returns the value of attribute viewbox.



5
6
7
# File 'lib/phantom/frame.rb', line 5

def viewbox
  @viewbox
end

#widthObject

Returns the value of attribute width.



5
6
7
# File 'lib/phantom/frame.rb', line 5

def width
  @width
end