Sha256: 60771003420b3a38f9b296010ea147d0b4b6ee1f3b417a8171355ee357116faa

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

#:enddoc:
module RailsConnector

  class ObjDataFromHash < ObjData
    def initialize(hash)
      @hash = hash.stringify_keys
    end

    def value_and_type_of(attribute_name)
      [@hash[attribute_name], nil]
    end

    def has_custom_attribute?(name)
      @hash.has_key?(name)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.0.210.ed204b0 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.110.6570b45 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.72.d18d096 lib/rails_connector/obj_data_from_hash.rb