Sha256: d7c0733f099495f3a8267e6ab8526c5a8bdd7ca3f36b4c24aafa43a181e0d930
Contents?: true
Size: 773 Bytes
Versions: 4
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module EhbrsRubyUtils module Booking module Processors class List class BuildAccommodation acts_as_instance_method common_constructor :list, :data TOTAL_VALUE = '=index($A:$ZZZ;row();column()-2)+index($A:$ZZZ;row();column()-1)' def result %i[link total].inject(data) do |a, e| a.merge(e => send("#{e}_value")) end end # @return [String] def link_value "=HYPERLINK(\"#{data.fetch(:href)}\";\"#{data.fetch(:name)}\")" end # @return [String] def total_value TOTAL_VALUE end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems