Sha256: 2500dfec3458de6d17a435fa7652f7ea29f14a5c5b8e92d8b53c3279dc2746d5

Contents?: true

Size: 269 Bytes

Versions: 91

Compression:

Stored size: 269 Bytes

Contents

module FinApps
  module REST
    class Resource
      include FinApps::Logging

      # @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

91 entries across 91 versions & 1 rubygems

Version Path
finapps-0.20.0.pre lib/finapps/rest/resource.rb
finapps-0.19.1.pre lib/finapps/rest/resource.rb
finapps-0.19.0.pre lib/finapps/rest/resource.rb
finapps-0.18.4.pre lib/finapps/rest/resource.rb
finapps-0.18.3.pre lib/finapps/rest/resource.rb
finapps-0.18.2.pre lib/finapps/rest/resource.rb
finapps-0.18.1.pre lib/finapps/rest/resource.rb
finapps-0.18.0.pre lib/finapps/rest/resource.rb
finapps-0.17.1.pre lib/finapps/rest/resource.rb
finapps-0.17.0.pre lib/finapps/rest/resource.rb
finapps-0.16.6.pre lib/finapps/rest/resource.rb
finapps-0.16.5.pre lib/finapps/rest/resource.rb
finapps-0.16.4.pre lib/finapps/rest/resource.rb
finapps-0.16.3.pre lib/finapps/rest/resource.rb
finapps-0.16.2.pre lib/finapps/rest/resource.rb
finapps-0.16.1.pre lib/finapps/rest/resource.rb
finapps-0.16.0.pre lib/finapps/rest/resource.rb
finapps-0.15.2.pre lib/finapps/rest/resource.rb
finapps-0.15.1.pre lib/finapps/rest/resource.rb
finapps-0.15.0.pre lib/finapps/rest/resource.rb