Class: Dobedobedo::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/dobedobedo/comment.rb

Instance Method Summary collapse

Constructor Details

#initialize(token, h = {}) ⇒ Comment

Returns a new instance of Comment.



4
5
6
7
8
9
10
11
12
# File 'lib/dobedobedo/comment.rb', line 4

def initialize(token, h={})
	@token = token
	unless h.nil?
		h.each do |k,v|
			Comment.send(:attr_accessor, k.to_sym)
			self.send("#{k}=".to_sym, v)
		end
	end
end