Sha256: 5acf657e1c0428b3354d71662cdd2170b0d40255354c6479b404adf7393e28e3

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 Bytes

Contents

module Fonte
  module Nodes
    class SteamIDUniverseNode < Treetop::Runtime::SyntaxNode
      def value
        case universe.text_value.to_i
          when 0
            "Unspecified"
          when 1
            "Public"
          when 2
            "Beta"
          when 3
            "Internal"
          when 4
            "Dev"
          when 5
            "RC"
          end
      end

      def unspecified?
        value == "Unspecified"
      end

      def public?
        value == "Public"
      end

      def beta?
        value == "Beta"
      end

      def internal?
        value == "Internal"
      end

      def developer?
        value = "Dev"
      end

      def rc?
        value == "RC"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fonte-0.2.0 lib/fonte/nodes/steam_id_universe_node.rb
fonte-0.1.0 lib/fonte/nodes/steam_id_universe_node.rb
fonte-0.0.1 lib/fonte/nodes/steam_id_universe_node.rb