Class: SlackRubyBot::Commands::Support::Match
- Inherits:
-
Object
- Object
- SlackRubyBot::Commands::Support::Match
- Extended by:
- Forwardable
- Defined in:
- lib/slack-ruby-bot/commands/support/match.rb
Instance Attribute Summary collapse
-
#attachment ⇒ Object
readonly
Returns the value of attribute attachment.
-
#attachment_field ⇒ Object
readonly
Returns the value of attribute attachment_field.
Instance Method Summary collapse
-
#initialize(match_data, attachment = nil, attachment_field = nil) ⇒ Match
constructor
A new instance of Match.
Constructor Details
#initialize(match_data, attachment = nil, attachment_field = nil) ⇒ Match
Returns a new instance of Match.
13 14 15 16 17 18 19 |
# File 'lib/slack-ruby-bot/commands/support/match.rb', line 13 def initialize(match_data, = nil, = nil) raise ArgumentError, 'match_data should be a type of MatchData' unless match_data.is_a? MatchData @match_data = match_data @attachment = @attachment_field = end |
Instance Attribute Details
#attachment ⇒ Object (readonly)
Returns the value of attribute attachment.
11 12 13 |
# File 'lib/slack-ruby-bot/commands/support/match.rb', line 11 def @attachment end |
#attachment_field ⇒ Object (readonly)
Returns the value of attribute attachment_field.
11 12 13 |
# File 'lib/slack-ruby-bot/commands/support/match.rb', line 11 def @attachment_field end |