Class: STDDAPI::Objects::Embedding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scenario_id, mime_type, buf) ⇒ Embedding

Returns a new instance of Embedding.



154
155
156
157
158
# File 'lib/objects.rb', line 154

def initialize(scenario_id,mime_type,buf)
  @scenario_id = scenario_id
  @mime_type = mime_type
  @buf=buf
end

Instance Attribute Details

#bufObject

Returns the value of attribute buf.



159
160
161
# File 'lib/objects.rb', line 159

def buf
  @buf
end

#mime_typeObject

Returns the value of attribute mime_type.



159
160
161
# File 'lib/objects.rb', line 159

def mime_type
  @mime_type
end

#scenario_idObject

Returns the value of attribute scenario_id.



159
160
161
# File 'lib/objects.rb', line 159

def scenario_id
  @scenario_id
end

Instance Method Details

#to_jsonObject



160
161
162
# File 'lib/objects.rb', line 160

def to_json
  {'scenario_id'=>scenario_id ,'mime_type' => @mime_type,'buf' => @buf}.to_json
end