Sha256: fa907d72b3a1918665c3cdb5f36cb83c239aba93a75fd3dedfb6bdc75130f79e

Contents?: true

Size: 615 Bytes

Versions: 14

Compression:

Stored size: 615 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
punchblock-0.9.2 lib/punchblock/ref.rb
punchblock-0.9.1 lib/punchblock/ref.rb
punchblock-0.9.0 lib/punchblock/ref.rb
punchblock-0.8.4 lib/punchblock/ref.rb
punchblock-0.8.3 lib/punchblock/ref.rb
punchblock-0.8.2 lib/punchblock/ref.rb
punchblock-0.8.1 lib/punchblock/ref.rb
punchblock-0.8.0 lib/punchblock/ref.rb
punchblock-0.7.2 lib/punchblock/ref.rb
punchblock-0.7.1 lib/punchblock/ref.rb
punchblock-0.7.0 lib/punchblock/ref.rb
punchblock-0.6.2 lib/punchblock/ref.rb
punchblock-0.6.1 lib/punchblock/ref.rb
punchblock-0.6.0 lib/punchblock/ref.rb