Sha256: d16651f2a6320741da063146ab5958ebf0e715ac6560b9198b87a3754f828281

Contents?: true

Size: 349 Bytes

Versions: 48

Compression:

Stored size: 349 Bytes

Contents

module RockRMS
  module Response
    class Block < Base
      MAP = {
        name: 'Name',
        block_type: 'BlockType',
        page_id: 'PageId'
      }.freeze

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

Version data entries

48 entries across 48 versions & 1 rubygems

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