Class: Messages::AttachmentClass
- Inherits:
-
Object
- Object
- Messages::AttachmentClass
- Defined in:
- lib/yellowant/message/attachment_class.rb
Instance Attribute Summary collapse
-
#short ⇒ Object
Returns the value of attribute short.
-
#title ⇒ Object
Returns the value of attribute title.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #get_dict ⇒ Object
-
#initialize ⇒ AttachmentClass
constructor
A new instance of AttachmentClass.
Constructor Details
#initialize ⇒ AttachmentClass
Returns a new instance of AttachmentClass.
5 6 7 8 9 |
# File 'lib/yellowant/message/attachment_class.rb', line 5 def initialize @title = '' @short = 0 @value = '' end |
Instance Attribute Details
#short ⇒ Object
Returns the value of attribute short.
4 5 6 |
# File 'lib/yellowant/message/attachment_class.rb', line 4 def short @short end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/yellowant/message/attachment_class.rb', line 4 def title @title end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/yellowant/message/attachment_class.rb', line 4 def value @value end |
Instance Method Details
#get_dict ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/yellowant/message/attachment_class.rb', line 11 def get_dict if !short.is_a? Integer raise YellowantExceptions::YellowAntError, ":short must be an integer" else {"title"=>@title, "short"=>@short, "value" => @value} end end |