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.8.0.406.131718077 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.356.19698103 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.348.160665197 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.328.4a753fc lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.8.0.322.c003f11 lib/rails_connector/obj_data_from_hash.rb