Class: Ghub::Models::Link

Inherits:
Struct
  • Object
show all
Defined in:
lib/ghub/models/link.rb

Overview

Defines a link.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLink

Returns a new instance of Link.



7
8
9
10
# File 'lib/ghub/models/link.rb', line 7

def initialize(**)
  super
  freeze
end

Instance Attribute Details

#hrefObject

Returns the value of attribute href

Returns:

  • (Object)

    the current value of href



6
7
8
# File 'lib/ghub/models/link.rb', line 6

def href
  @href
end