Class: RubyAMF::IntermediateObject

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyamf/intermediate_object.rb

Overview

IntermediateObject packages an object with its requested serialization options. This allows the pre-configured serialization configuration to be overridden as needed. They are automatically created by to_amf and should not be generated manually.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, options) ⇒ IntermediateObject

Returns a new instance of IntermediateObject.



9
10
11
12
# File 'lib/rubyamf/intermediate_object.rb', line 9

def initialize object, options
  @object = object
  @options = options
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



7
8
9
# File 'lib/rubyamf/intermediate_object.rb', line 7

def object
  @object
end

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/rubyamf/intermediate_object.rb', line 7

def options
  @options
end

Instance Method Details

#rubyamf_hashObject



14
15
16
# File 'lib/rubyamf/intermediate_object.rb', line 14

def rubyamf_hash
  @object.rubyamf_hash @options
end