Class: FactorioMods::Mod::MediaFile

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

Defined Under Namespace

Classes: MediaUrl

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject

Returns the value of attribute height.



7
8
9
# File 'lib/factorio_mods/mod.rb', line 7

def height
  @height
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/factorio_mods/mod.rb', line 7

def id
  @id
end

#sizeObject

Returns the value of attribute size.



7
8
9
# File 'lib/factorio_mods/mod.rb', line 7

def size
  @size
end

#urlsObject

Returns the value of attribute urls.



8
9
10
# File 'lib/factorio_mods/mod.rb', line 8

def urls
  @urls
end

#widthObject

Returns the value of attribute width.



7
8
9
# File 'lib/factorio_mods/mod.rb', line 7

def width
  @width
end