Class: Howcast::Client::Type

Inherits:
Object
  • Object
show all
Extended by:
WatchAttrAccessors
Includes:
XmlMethods
Defined in:
lib/howcast/client/type.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 = {}) ⇒ 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

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end