Sha256: d16651f2a6320741da063146ab5958ebf0e715ac6560b9198b87a3754f828281

Contents?: true

Size: 349 Bytes

Versions: 50

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

50 entries across 50 versions & 1 rubygems

Version Path
rock_rms-8.2.0 lib/rock_rms/response/block.rb
rock_rms-8.1.0 lib/rock_rms/response/block.rb
rock_rms-8.0.0 lib/rock_rms/response/block.rb
rock_rms-7.4.0 lib/rock_rms/response/block.rb
rock_rms-7.3.0 lib/rock_rms/response/block.rb
rock_rms-7.2.0 lib/rock_rms/response/block.rb
rock_rms-7.1.2 lib/rock_rms/response/block.rb
rock_rms-7.1.1 lib/rock_rms/response/block.rb
rock_rms-7.1.0 lib/rock_rms/response/block.rb
rock_rms-7.0.3 lib/rock_rms/response/block.rb