Sha256: 7ddfff2a3fd629b289cbab840724bc7d0f5d8780360c799af32fdf7e8afbfa07

Contents?: true

Size: 295 Bytes

Versions: 25

Compression:

Stored size: 295 Bytes

Contents

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

25 entries across 25 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.9.2.1.125136549 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.9.1.3.22208381 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.9.0.3.197272233 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.3.174.51542603 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.3.115.227021242 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.3.73.75172665 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.3.2.153416031 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.3.67.110847540 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.3.1.23895778 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.2.36.82613853 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.2.7.128454143 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.1.26.236500544 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.1 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.539.93842523 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.529.114081979 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.518.30999728 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.515.34928522 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.498.46559598 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.480.261594408 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.444.171626367 lib/rails_connector/obj_data_from_hash.rb