class DavinciRubyClientSDK::Blueprint
Attributes
layers[RW]
tag[RW]
tmp_inspiration[RW]
tmp_layer[RW]
Public Class Methods
new(tag)
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 6 def initialize(tag) @blueprint = Hash.new @layers = Array.new self.tag = tag end
Public Instance Methods
add_canvas_option(key, value)
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 33 def add_canvas_option(key, value) @canvas[key.to_sym] = value end
add_inspiration(key, value)
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 55 def add_inspiration(key, value) self.tmp_inspiration[key.to_sym] = value end
add_layer(index) { |self| ... }
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 12 def add_layer(index) self.tmp_layer = Hash.new self.tmp_inspiration = Hash.new self.tmp_layer[:layer] = index yield self if block_given? self.tmp_layer[:inspiration] = self.tmp_inspiration @layers << self.tmp_layer self.tmp_layer = nil self.tmp_inspiration = nil end
add_mount_option(key, value)
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 43 def add_mount_option(key, value) @mount[key.to_sym] = value end
canvas() { |self| ... }
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 27 def canvas @canvas ||= Hash.new yield self if block_given? @canvas end
inspiration=(value = {})
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 51 def inspiration=(value = {}) self.tmp_inspiration = value end
mount() { |self| ... }
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 37 def mount @mount ||= Hash.new yield self if block_given? @mount end
technique=(value)
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 47 def technique=(value) self.tmp_layer[:technique] = value.to_s end
to_blueprint()
click to toggle source
# File lib/DavinciRubyClientSDK/blueprint.rb, line 59 def to_blueprint { :tag => @tag, :layers => @layers, :canvas => @canvas, :mount => @mount } end