Exception: Twterm::Tweetbox::TextTooLongError
- Inherits:
-
StandardError
- Object
- StandardError
- Twterm::Tweetbox::TextTooLongError
- Defined in:
- lib/twterm/tweetbox.rb
Instance Method Summary collapse
-
#initialize(parse_result) ⇒ TextTooLongError
constructor
A new instance of TextTooLongError.
- #message ⇒ Object
Constructor Details
#initialize(parse_result) ⇒ TextTooLongError
Returns a new instance of TextTooLongError.
9 10 11 |
# File 'lib/twterm/tweetbox.rb', line 9 def initialize(parse_result) @parse_result = parse_result end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/twterm/tweetbox.rb', line 13 def "Text is too long (weighted length: #{@parse_result[:weighted_length]} / 280)" end |