Class: ResoTransport::Member

Inherits:
Struct
  • Object
show all
Defined in:
lib/reso_transport/enum.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#annotationObject

Returns the value of attribute annotation

Returns:

  • (Object)

    the current value of annotation



2
3
4
# File 'lib/reso_transport/enum.rb', line 2

def annotation
  @annotation
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/reso_transport/enum.rb', line 2

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'lib/reso_transport/enum.rb', line 2

def value
  @value
end

Class Method Details

.from_stream(args) ⇒ Object



3
4
5
# File 'lib/reso_transport/enum.rb', line 3

def self.from_stream(args)
  new(args["Name"], args["Value"])
end