Class: Rubaiji::Video

Inherits:
Object
  • Object
show all
Defined in:
lib/rubaiji/video.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Video

Returns a new instance of Video.



5
6
7
8
9
# File 'lib/rubaiji/video.rb', line 5

def initialize(params)
  params.each do |k, v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end

Instance Attribute Details

#htmlObject

Returns the value of attribute html.



3
4
5
# File 'lib/rubaiji/video.rb', line 3

def html
  @html
end