Class: Redlink::Redthing
- Inherits:
-
Object
- Object
- Redlink::Redthing
- Defined in:
- lib/redlink/redthing.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(raw) ⇒ Redthing
constructor
A new instance of Redthing.
Constructor Details
#initialize(raw) ⇒ Redthing
Returns a new instance of Redthing.
3 4 5 6 7 |
# File 'lib/redlink/redthing.rb', line 3 def initialize(raw) raw.each do |k, v| self.send("#{k}=", v) if self.respond_to?("#{k}=") end end |