Sha256: 3ab30defa6caad78ed304324dd12aabd4c67dbc5e95b3f20c8a3852c72af4d84

Contents?: true

Size: 378 Bytes

Versions: 6

Compression:

Stored size: 378 Bytes

Contents

module RailsConnector

  class ObjDataFromHash < ObjData
    def initialize(hash, type_hash = {})
      @hash = hash.stringify_keys
      @type_hash = type_hash.stringify_keys
    end

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

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

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.0.2 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-7.0.1 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-7.0.0 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.9.5 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.9.4 lib/rails_connector/obj_data_from_hash.rb
infopark_cloud_connector-6.9.3.1.36404185 lib/rails_connector/obj_data_from_hash.rb