Class: Field

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-common/v4/Signature4VerifierService.rb

Overview

Helper class to represent field information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Field

Returns a new instance of Field.



19
20
21
22
# File 'lib/ruby-common/v4/Signature4VerifierService.rb', line 19

def initialize(name, type)
  @name = name
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'lib/ruby-common/v4/Signature4VerifierService.rb', line 17

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



17
18
19
# File 'lib/ruby-common/v4/Signature4VerifierService.rb', line 17

def type
  @type
end