Sha256: 7d57023318240e96e815f5a5151f06bfea78d8777fd654aaa42d7eb1c9a03888
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module RubyRedtail class TagGroup def initialize(tag_group = {},api_hash) @api_hash = api_hash raise ArgumentError unless tag_group['RecID'] @id = tag_group['RecID'] raise ArgumentError if tag_group.class != Hash tag_group.each do |key, value| key = key.underscore self.class.send :attr_accessor, key instance_variable_set "@#{key}", value end end def contacts RubyRedtail::TagGroup::Contacts.new self.api_hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-redtail-0.3.3 | lib/ruby-redtail/tag_group.rb |