Class: RubyRedtail::Taggroup
- Inherits:
-
Object
- Object
- RubyRedtail::Taggroup
- Defined in:
- lib/ruby-redtail/taggroup.rb
Instance Method Summary collapse
-
#initialize(setting = {}, api_hash) ⇒ Taggroup
constructor
A new instance of Taggroup.
Constructor Details
#initialize(setting = {}, api_hash) ⇒ Taggroup
Returns a new instance of Taggroup.
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/ruby-redtail/taggroup.rb', line 3 def initialize(setting = {},api_hash) @api_hash = api_hash raise ArgumentError if setting.class != Hash setting.each do |key, value| key = key.underscore self.class.send :attr_accessor, key instance_variable_set "@#{key}", value end end |