Class: TreeHaver::ParserIdentity

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#implementationObject

Returns the value of attribute implementation

Returns:

  • (Object)

    the current value of implementation



54
55
56
# File 'lib/tree_haver/contracts.rb', line 54

def implementation
  @implementation
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



54
55
56
# File 'lib/tree_haver/contracts.rb', line 54

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



54
55
56
# File 'lib/tree_haver/contracts.rb', line 54

def version
  @version
end

Instance Method Details

#to_hObject



55
56
57
58
59
60
61
# File 'lib/tree_haver/contracts.rb', line 55

def to_h
  {
    name: name,
    version: version,
    implementation: implementation
  }
end