lib/validic/organization.rb in validic-0.3.3 vs lib/validic/organization.rb in validic-0.4.1
- old
+ new
@@ -1,17 +1,10 @@
-# encoding: utf-8
-
module Validic
- module Organization
-
- ##
- # Get Organization base on `access_token` and organization_id
- #
- # @params :access_token
- # @return [Hashie::Mash] with list of Organization
- def get_organization(params={})
- params = extract_params(params)
- get("/#{Validic.api_version}/organizations/#{Validic.organization_id}.json", params)
+ class Organization
+ def initialize(attrs = {})
+ attrs.each do |k, v|
+ instance_variable_set("@#{k}", v)
+ self.class.send(:attr_reader, k)
+ end
end
-
end
end