lib/ruby-redtail/user/settings.rb in ruby-redtail-0.2.0 vs lib/ruby-redtail/user/settings.rb in ruby-redtail-0.3.0
- old
+ new
@@ -89,9 +89,21 @@
setting_hashes.collect { |setting_hash| self.build_setting setting_hash }
else
raise RubyRedtail::AuthenticationError
end
end
+
+ def build_taggroup taggroup_hash
+ RubyRedtail::Taggroup.new(taggroup_hash,@api_hash)
+ end
+
+ def build_taggroups_array taggroup_hashes
+ if taggroup_hashes
+ taggroup_hashes.collect { |taggroup_hash| self.build_taggroup taggroup_hash }
+ else
+ raise RubyRedtail::AuthenticationError
+ end
+ end
end
end
end
\ No newline at end of file