Class: Decibel::Activity
- Inherits:
-
Object
- Object
- Decibel::Activity
- Defined in:
- lib/wrapper/resources/activity.rb
Instance Attribute Summary collapse
-
#Name ⇒ Object
Returns the value of attribute Name.
Instance Method Summary collapse
-
#initialize(args) ⇒ Activity
constructor
A new instance of Activity.
Constructor Details
#initialize(args) ⇒ Activity
Returns a new instance of Activity.
5 6 7 8 9 |
# File 'lib/wrapper/resources/activity.rb', line 5 def initialize args args.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#Name ⇒ Object
Returns the value of attribute Name.
3 4 5 |
# File 'lib/wrapper/resources/activity.rb', line 3 def Name @Name end |