Class: Howcast::Client::Type
- Inherits:
-
Object
- Object
- Howcast::Client::Type
- Extended by:
- WatchAttrAccessors
- Includes:
- XmlMethods
- Defined in:
- lib/howcast/client/type.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Type
constructor
Creates a new Type 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 = {}) ⇒ Type
Creates a new Type 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 type
Type.new :name => "HowcastGuide", :kind => "HowcastOriginalGuide", :status => "proprietary"
42 43 44 45 46 |
# File 'lib/howcast/client/type.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
#kind ⇒ Object
Returns the value of attribute kind.
29 30 31 |
# File 'lib/howcast/client/type.rb', line 29 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name.
29 30 31 |
# File 'lib/howcast/client/type.rb', line 29 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
29 30 31 |
# File 'lib/howcast/client/type.rb', line 29 def status @status end |