Class: Howcast::Client::Marker

Inherits:
Object
  • Object
show all
Extended by:
WatchAttrAccessors
Includes:
XmlMethods
Defined in:
lib/howcast/client/marker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WatchAttrAccessors

attr_accessor, attr_accessors

Methods included from XmlMethods

#to_doc, #to_xml

Constructor Details

#initialize(attributes = {}) ⇒ Marker

Creates a new Marker object which is used to encapsulate all the attributes available from the Howcast Video API.

Inputs

  • attributes – A hash to set the various attributes of the marker object

Examples

Initialize a marker with title “Do something”

Marker.new :title => "Do something"


42
43
44
45
46
# File 'lib/howcast/client/marker.rb', line 42

def initialize(attributes={})
  attributes.each do |k, v|
    self.send("#{k}=", v) if self.respond_to?(k)
  end
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def id
  @id
end

#positionObject

Returns the value of attribute position.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def position
  @position
end

#textObject

Returns the value of attribute text.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def text
  @text
end

#textile_textObject

Returns the value of attribute textile_text.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def textile_text
  @textile_text
end

#thumbnail_urlObject

Returns the value of attribute thumbnail_url.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def thumbnail_url
  @thumbnail_url
end

#timemarkerObject

Returns the value of attribute timemarker.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def timemarker
  @timemarker
end

#titleObject

Returns the value of attribute title.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def title
  @title
end

#typeObject

Returns the value of attribute type.



29
30
31
# File 'lib/howcast/client/marker.rb', line 29

def type
  @type
end