Class: Howcast::Client::Marker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WatchAttrAccessors

attr_accessor, attr_accessors

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"


40
41
42
43
44
# File 'lib/howcast/client/marker.rb', line 40

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.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def id
  @id
end

#positionObject

Returns the value of attribute position.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def position
  @position
end

#textObject

Returns the value of attribute text.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def text
  @text
end

#textile_textObject

Returns the value of attribute textile_text.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def textile_text
  @textile_text
end

#thumbnail_urlObject

Returns the value of attribute thumbnail_url.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def thumbnail_url
  @thumbnail_url
end

#timemarkerObject

Returns the value of attribute timemarker.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def timemarker
  @timemarker
end

#titleObject

Returns the value of attribute title.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def title
  @title
end

#typeObject

Returns the value of attribute type.



27
28
29
# File 'lib/howcast/client/marker.rb', line 27

def type
  @type
end