Class: Telegram
- Inherits:
-
Object
- Object
- Telegram
- Defined in:
- lib/telegrams/telegram.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #as_bytes ⇒ Object
-
#initialize ⇒ Telegram
constructor
A new instance of Telegram.
- #max_size_in_bytes ⇒ Object
Constructor Details
#initialize ⇒ Telegram
Returns a new instance of Telegram.
4 5 |
# File 'lib/telegrams/telegram.rb', line 4 def initialize() end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/telegrams/telegram.rb', line 2 def type @type end |
Instance Method Details
#as_bytes ⇒ Object
7 8 9 |
# File 'lib/telegrams/telegram.rb', line 7 def as_bytes [@type] end |
#max_size_in_bytes ⇒ Object
11 12 13 |
# File 'lib/telegrams/telegram.rb', line 11 def max_size_in_bytes 64 end |