Class: Howcast::Client::Marker
- Inherits:
-
Object
- Object
- Howcast::Client::Marker
- Extended by:
- WatchAttrAccessors
- Includes:
- XmlMethods
- Defined in:
- lib/howcast/client/marker.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#position ⇒ Object
Returns the value of attribute position.
-
#text ⇒ Object
Returns the value of attribute text.
-
#textile_text ⇒ Object
Returns the value of attribute textile_text.
-
#thumbnail_url ⇒ Object
Returns the value of attribute thumbnail_url.
-
#timemarker ⇒ Object
Returns the value of attribute timemarker.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Marker
constructor
Creates a new Marker object which is used to encapsulate all the attributes available from the Howcast Video API.
Methods included from WatchAttrAccessors
Methods included from XmlMethods
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
#id ⇒ Object
Returns the value of attribute id.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def id @id end |
#position ⇒ Object
Returns the value of attribute position.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def position @position end |
#text ⇒ Object
Returns the value of attribute text.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def text @text end |
#textile_text ⇒ Object
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_url ⇒ Object
Returns the value of attribute thumbnail_url.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def thumbnail_url @thumbnail_url end |
#timemarker ⇒ Object
Returns the value of attribute timemarker.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def timemarker @timemarker end |
#title ⇒ Object
Returns the value of attribute title.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
29 30 31 |
# File 'lib/howcast/client/marker.rb', line 29 def type @type end |