Class: Pio::Features::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/pio/features/message.rb

Overview

Base class of Features request and reply.

Direct Known Subclasses

Reply, Request

Class Method Summary collapse

Class Method Details

.create_from(features) ⇒ Object



7
8
9
10
11
# File 'lib/pio/features/message.rb', line 7

def self.create_from(features)
  message = allocate
  message.instance_variable_set :@features, features
  message
end