Sha256: 13ebc400051d06b2afa8ec2e34ab138c5296b14a61abea7fd404a7b121d25d00

Contents?: true

Size: 238 Bytes

Versions: 36

Compression:

Stored size: 238 Bytes

Contents

module FinApps
  module REST
    class Resource

      # @param [Hash] hash
      def initialize(hash)
        hash.each { |k, v| instance_variable_set("@#{k}", v) unless v.nil? } if hash.present?
        self
      end

    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
finapps-0.2.3.pre lib/finapps/rest/resource.rb
finapps-0.2.2.pre lib/finapps/rest/resource.rb
finapps-0.2.1.pre lib/finapps/rest/resource.rb
finapps-0.1.23.pre lib/finapps/rest/resource.rb
finapps-0.1.22.pre lib/finapps/rest/resource.rb
finapps-0.1.21.pre lib/finapps/rest/resource.rb
finapps-0.1.20.pre lib/finapps/rest/resource.rb
finapps-0.1.19.pre lib/finapps/rest/resource.rb
finapps-0.1.18.pre lib/finapps/rest/resource.rb
finapps-0.1.17.pre lib/finapps/rest/resource.rb
finapps-0.1.16.pre lib/finapps/rest/resource.rb
finapps-0.1.15.pre lib/finapps/rest/resource.rb
finapps-0.1.14.pre lib/finapps/rest/resource.rb
finapps-0.1.13.pre lib/finapps/rest/resource.rb
finapps-0.1.12.pre lib/finapps/rest/resource.rb
finapps-0.1.11.pre lib/finapps/rest/resource.rb
finapps-0.1.10.pre lib/finapps/rest/resource.rb
finapps-0.1.8.pre lib/finapps/rest/resource.rb
finapps-0.1.7.pre lib/finapps/rest/resource.rb
finapps-0.1.6.pre lib/finapps/rest/resource.rb