Sha256: 7456cdcca132b01a21bbcf552e3a5212bf936cbc38680e2fdb0a0d05960e76b4

Contents?: true

Size: 634 Bytes

Versions: 25

Compression:

Stored size: 634 Bytes

Contents

# encoding: utf-8

module Punchblock
  ##
  # An rayo Ref message. This provides the command ID in response to execution of a command.
  #
  class Ref < RayoNode
    register :ref, :core

    def self.new(options = {})
      super().tap do |new_node|
        options.each_pair { |k,v| new_node.send :"#{k}=", v }
      end
    end

    ##
    # @return [String] the command ID
    #
    def id
      read_attr :id
    end

    ##
    # @param [String] ref_id the command ID
    #
    def id=(ref_id)
      write_attr :id, ref_id
    end

    def inspect_attributes # :nodoc:
      [:id] + super
    end
  end # Offer
end # Punchblock

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
punchblock-1.9.4 lib/punchblock/ref.rb
punchblock-1.9.3 lib/punchblock/ref.rb
punchblock-1.9.2 lib/punchblock/ref.rb
punchblock-1.9.1 lib/punchblock/ref.rb
punchblock-1.9.0 lib/punchblock/ref.rb
punchblock-1.8.2 lib/punchblock/ref.rb
punchblock-1.8.1 lib/punchblock/ref.rb
punchblock-1.8.0 lib/punchblock/ref.rb
punchblock-1.7.1 lib/punchblock/ref.rb
punchblock-1.7.0 lib/punchblock/ref.rb
punchblock-1.6.1 lib/punchblock/ref.rb
punchblock-1.6.0 lib/punchblock/ref.rb
punchblock-1.5.3 lib/punchblock/ref.rb
punchblock-1.5.2 lib/punchblock/ref.rb
punchblock-1.5.1 lib/punchblock/ref.rb
punchblock-1.5.0 lib/punchblock/ref.rb
punchblock-1.4.1 lib/punchblock/ref.rb
punchblock-1.4.0 lib/punchblock/ref.rb
punchblock-1.3.0 lib/punchblock/ref.rb
punchblock-1.2.0 lib/punchblock/ref.rb