Sha256: 4c93f45aeee3eb65e6a3eaf95ac68dd0328bd2386eac21a1aef1da56dc87fed5

Contents?: true

Size: 246 Bytes

Versions: 4

Compression:

Stored size: 246 Bytes

Contents

module FinApps
  module REST
    class Resource # :nodoc:
      # @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

4 entries across 4 versions & 1 rubygems

Version Path
finapps-2.0.5 lib/finapps/rest/resource.rb
finapps-2.0.4 lib/finapps/rest/resource.rb
finapps-2.0.3 lib/finapps/rest/resource.rb
finapps-2.0.2 lib/finapps/rest/resource.rb