Class: LockDiff::Changelog

Inherits:
Object
  • Object
show all
Defined in:
lib/lock_diff/changelog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Changelog



7
8
9
# File 'lib/lock_diff/changelog.rb', line 7

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/lock_diff/changelog.rb', line 5

def url
  @url
end

Instance Method Details

#nameObject



11
12
13
# File 'lib/lock_diff/changelog.rb', line 11

def name
  File.basename(@url)
end