Class: KhipuChaski::Message
- Inherits:
-
BaseObject
- Object
- BaseObject
- KhipuChaski::Message
- Defined in:
- lib/khipu-chaski-api-client/models/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#msg_properties ⇒ Object
Returns the value of attribute msg_properties.
-
#recipient_id_set ⇒ Object
Returns the value of attribute recipient_id_set.
-
#subject ⇒ Object
Returns the value of attribute subject.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Message
constructor
A new instance of Message.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ Message
Returns a new instance of Message.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 35 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'subject'] self.subject = attributes[:'subject'] end if attributes[:'recipientIdSet'] if (value = attributes[:'recipientIdSet']).is_a?(Array) self.recipient_id_set = value end end if attributes[:'body'] self.body = attributes[:'body'] end if attributes[:'msgProperties'] if (value = attributes[:'msgProperties']).is_a?(Array) self.msg_properties = value end end end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 4 def body @body end |
#msg_properties ⇒ Object
Returns the value of attribute msg_properties.
4 5 6 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 4 def msg_properties @msg_properties end |
#recipient_id_set ⇒ Object
Returns the value of attribute recipient_id_set.
4 5 6 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 4 def recipient_id_set @recipient_id_set end |
#subject ⇒ Object
Returns the value of attribute subject.
4 5 6 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 4 def subject @subject end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 6 def self.attribute_map { # Asunto de mensaje :'subject' => :'subject', # Lista de identificadores de receptores del mensaje :'recipient_id_set' => :'recipientIdSet', # Cuerpo del mensaje :'body' => :'body', # Lista de propiedades del mensaje :'msg_properties' => :'msgProperties' } end |
.swagger_types ⇒ Object
attribute type
25 26 27 28 29 30 31 32 33 |
# File 'lib/khipu-chaski-api-client/models/message.rb', line 25 def self.swagger_types { :'subject' => :'String', :'recipient_id_set' => :'Array<String>', :'body' => :'String', :'msg_properties' => :'Array<MsgProperty>' } end |