Class: Cp8Cli::AdhocStory

Inherits:
Story
  • Object
show all
Defined in:
lib/cp8_cli/adhoc_story.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Story

#start

Constructor Details

#initialize(title) ⇒ AdhocStory

Returns a new instance of AdhocStory.



7
8
9
# File 'lib/cp8_cli/adhoc_story.rb', line 7

def initialize(title)
  @title = title
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/cp8_cli/adhoc_story.rb', line 5

def title
  @title
end

Instance Method Details

#summaryObject



11
12
13
# File 'lib/cp8_cli/adhoc_story.rb', line 11

def summary
  # noop
end

#urlObject



15
16
17
# File 'lib/cp8_cli/adhoc_story.rb', line 15

def url
  "#{Repo.current.url}/tree/#{Branch.current}"
end