Class: FactorioMods::Mod::MediaFile
- Inherits:
-
Object
- Object
- FactorioMods::Mod::MediaFile
- Defined in:
- lib/factorio_mods/mod.rb
Defined Under Namespace
Classes: MediaUrl
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#id ⇒ Object
Returns the value of attribute id.
-
#size ⇒ Object
Returns the value of attribute size.
-
#urls ⇒ Object
Returns the value of attribute urls.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ MediaFile
constructor
A new instance of MediaFile.
Constructor Details
#initialize(data = {}) ⇒ MediaFile
Returns a new instance of MediaFile.
10 11 12 13 14 |
# File 'lib/factorio_mods/mod.rb', line 10 def initialize(data = {}) data.each do |k, v| send "#{k}=".to_sym, v if respond_to? "#{k}=".to_sym end end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
7 8 9 |
# File 'lib/factorio_mods/mod.rb', line 7 def height @height end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/factorio_mods/mod.rb', line 7 def id @id end |
#size ⇒ Object
Returns the value of attribute size.
7 8 9 |
# File 'lib/factorio_mods/mod.rb', line 7 def size @size end |
#urls ⇒ Object
Returns the value of attribute urls.
8 9 10 |
# File 'lib/factorio_mods/mod.rb', line 8 def urls @urls end |
#width ⇒ Object
Returns the value of attribute width.
7 8 9 |
# File 'lib/factorio_mods/mod.rb', line 7 def width @width end |