Class: Cp8Cli::StoryQuery
- Inherits:
-
Object
- Object
- Cp8Cli::StoryQuery
- Defined in:
- lib/cp8_cli/story_query.rb
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(short_link) ⇒ StoryQuery
constructor
A new instance of StoryQuery.
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
#find ⇒ Object
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 |