Class: Cp8Cli::StoryQuery

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

Instance Method Summary collapse

Constructor Details

#initialize(short_link) ⇒ StoryQuery

Returns a new instance of StoryQuery.



3
4
5
# File 'lib/cp8_cli/story_query.rb', line 3

def initialize(short_link)
  @short_link = short_link
end

Instance Method Details

#findObject



7
8
9
10
11
12
13
# File 'lib/cp8_cli/story_query.rb', line 7

def find
  if github_issue?
    Github::Issue.find_by_short_link(short_link)
  else
    Trello::Card.find(short_link)
  end
end