Sha256: a401714bdbcb7a883ace2eb1753ab32d9b3f0121ab42a1f0c5c4592f694a7f3f

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Taksi
  module Values
    class Static
      attr_reader :widget, :name, :value

      def initialize(widget, name, value)
        @widget = widget
        @name = name
        @value = value
      end

      def as_json
        {type: 'static', value: value}
      end

      def dynamic?
        false
      end
    end
  end

  # Just a shortcut for ::Taksi::Values::Static
  Static = Values::Static
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taksi-0.1.0 lib/taksi/values/static.rb