Class: STDDAPI::Objects::Embedding
- Inherits:
-
Object
- Object
- STDDAPI::Objects::Embedding
- Defined in:
- lib/objects.rb
Instance Attribute Summary collapse
-
#buf ⇒ Object
Returns the value of attribute buf.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#scenario_id ⇒ Object
Returns the value of attribute scenario_id.
Instance Method Summary collapse
-
#initialize(scenario_id, mime_type, buf) ⇒ Embedding
constructor
A new instance of Embedding.
- #to_json ⇒ Object
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
#buf ⇒ Object
Returns the value of attribute buf.
159 160 161 |
# File 'lib/objects.rb', line 159 def buf @buf end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
159 160 161 |
# File 'lib/objects.rb', line 159 def mime_type @mime_type end |
#scenario_id ⇒ Object
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_json ⇒ Object
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 |