class PbJsonParser::AST::Field
Attributes
name[R]
type[R]
Public Class Methods
new(name:, type:)
click to toggle source
@param [String] name @param [String] type
# File lib/pb_json_parser/ast/field.rb, line 8 def initialize(name:, type:) @name = name @type = type end
Public Instance Methods
to_h()
click to toggle source
# File lib/pb_json_parser/ast/field.rb, line 13 def to_h { name: @name, type: @type, } end