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-1.0.8 lib/finapps/rest/resource.rb
finapps-1.0.7 lib/finapps/rest/resource.rb
finapps-1.0.6 lib/finapps/rest/resource.rb
finapps-1.0.5 lib/finapps/rest/resource.rb
finapps-1.0.4 lib/finapps/rest/resource.rb
finapps-1.0.3 lib/finapps/rest/resource.rb
finapps-1.0.2 lib/finapps/rest/resource.rb
finapps-1.0.1 lib/finapps/rest/resource.rb
finapps-1.0.0 lib/finapps/rest/resource.rb
finapps-0.22.4.pre lib/finapps/rest/resource.rb
finapps-0.22.3.pre lib/finapps/rest/resource.rb
finapps-0.22.2.pre lib/finapps/rest/resource.rb
finapps-0.22.1.pre lib/finapps/rest/resource.rb
finapps-0.22.0.pre lib/finapps/rest/resource.rb
finapps-0.21.6.pre lib/finapps/rest/resource.rb
finapps-0.21.5.pre lib/finapps/rest/resource.rb
finapps-0.21.4.pre lib/finapps/rest/resource.rb
finapps-0.21.3.pre lib/finapps/rest/resource.rb
finapps-0.21.2.pre lib/finapps/rest/resource.rb
finapps-0.21.0.pre lib/finapps/rest/resource.rb