Sha256: dcc52ae5772fdb54595d041e9c38a0d11e9b3e5e04d7eacb4e9db1b4bb0538e3
Contents?: true
Size: 776 Bytes
Versions: 26
Compression:
Stored size: 776 Bytes
Contents
# frozen_string_literal: true module Quilt module Performance class NavigationMetadata attr_accessor :index attr_accessor :supports_detailed_time attr_accessor :supports_detailed_events def self.from_params(params = {}) NavigationMetadata.new( index: params[:index], supports_detailed_time: params[:supports_detailed_time], supports_detailed_events: params[:supports_detailed_events], ) end def initialize(index:, supports_detailed_events:, supports_detailed_time:) @index = index @supports_detailed_time = supports_detailed_time @supports_detailed_events = supports_detailed_events end def has_size? !size.nil? end end end end
Version data entries
26 entries across 26 versions & 1 rubygems