Class: SauceWhisk::Asset
- Inherits:
-
Object
- Object
- SauceWhisk::Asset
- Defined in:
- lib/sauce_whisk/assets.rb
Instance Attribute Summary collapse
-
#asset_type ⇒ Object
readonly
Returns the value of attribute asset_type.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(parameters = {}) ⇒ Asset
constructor
A new instance of Asset.
Constructor Details
#initialize(parameters = {}) ⇒ Asset
Returns a new instance of Asset.
52 53 54 55 56 57 |
# File 'lib/sauce_whisk/assets.rb', line 52 def initialize(parameters={}) @asset_type = parameters[:type] || :screenshot @name = parameters[:name] @data = parameters[:data] @job = parameters[:job_id] end |
Instance Attribute Details
#asset_type ⇒ Object (readonly)
Returns the value of attribute asset_type.
51 52 53 |
# File 'lib/sauce_whisk/assets.rb', line 51 def asset_type @asset_type end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
51 52 53 |
# File 'lib/sauce_whisk/assets.rb', line 51 def data @data end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
51 52 53 |
# File 'lib/sauce_whisk/assets.rb', line 51 def job @job end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
51 52 53 |
# File 'lib/sauce_whisk/assets.rb', line 51 def name @name end |