Class: SauceWhisk::Asset

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#dataObject (readonly)

Returns the value of attribute data.



51
52
53
# File 'lib/sauce_whisk/assets.rb', line 51

def data
  @data
end

#jobObject (readonly)

Returns the value of attribute job.



51
52
53
# File 'lib/sauce_whisk/assets.rb', line 51

def job
  @job
end

#nameObject (readonly)

Returns the value of attribute name.



51
52
53
# File 'lib/sauce_whisk/assets.rb', line 51

def name
  @name
end