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.2.14.pre lib/finapps/rest/resource.rb
finapps-0.2.13.pre lib/finapps/rest/resource.rb
finapps-0.2.12.pre lib/finapps/rest/resource.rb
finapps-0.2.11.pre lib/finapps/rest/resource.rb
finapps-0.2.10.pre lib/finapps/rest/resource.rb
finapps-0.2.9.pre lib/finapps/rest/resource.rb
finapps-0.2.8.pre lib/finapps/rest/resource.rb
finapps-0.2.7.pre lib/finapps/rest/resource.rb
finapps-0.2.6.pre lib/finapps/rest/resource.rb
finapps-0.2.5.pre lib/finapps/rest/resource.rb
finapps-0.2.4.pre lib/finapps/rest/resource.rb