Sha256: c9204a072d065122053278214b8ff585a039882ba7ba0864a9ab4807ca313700

Contents?: true

Size: 459 Bytes

Versions: 32

Compression:

Stored size: 459 Bytes

Contents

module RockRMS
  module Response
    class AttributeValue < Base
      MAP = {
        value: 'Value',
        value_as_number: 'ValueAsNumeric',
        value_formatted: 'ValueFormatted',
        entity_id: 'EntityId',
        attribute: 'Attribute'
      }.freeze

      def format_single(data)
        response             = to_h(MAP, data)
        response[:attribute] = Attribute.format(response[:attribute])
        response
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rock_rms-9.14.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.13.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.12.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.11.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.10.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.9.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.8.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.7.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.6.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.5.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.4.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.3.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.2.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.1.0 lib/rock_rms/response/attribute_value.rb
rock_rms-9.0.0 lib/rock_rms/response/attribute_value.rb
rock_rms-8.23.0 lib/rock_rms/response/attribute_value.rb
rock_rms-8.22.0 lib/rock_rms/response/attribute_value.rb
rock_rms-8.21.0 lib/rock_rms/response/attribute_value.rb
rock_rms-8.20.0 lib/rock_rms/response/attribute_value.rb
rock_rms-8.19.0 lib/rock_rms/response/attribute_value.rb