Class: MessageMediaConversations::ConfigureAccountRequest
- Defined in:
- lib/message_media_conversations/models/configure_account_request.rb
Overview
ConfigureAccountRequest Model.
Instance Attribute Summary collapse
-
#callback_url ⇒ String
TODO: Write general description for this method.
-
#name ⇒ String
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
Instance Method Summary collapse
-
#initialize(name = nil, callback_url = nil) ⇒ ConfigureAccountRequest
constructor
A new instance of ConfigureAccountRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(name = nil, callback_url = nil) ⇒ ConfigureAccountRequest
Returns a new instance of ConfigureAccountRequest.
23 24 25 26 27 |
# File 'lib/message_media_conversations/models/configure_account_request.rb', line 23 def initialize(name = nil, callback_url = nil) @name = name @callback_url = callback_url end |
Instance Attribute Details
#callback_url ⇒ String
TODO: Write general description for this method
13 14 15 |
# File 'lib/message_media_conversations/models/configure_account_request.rb', line 13 def callback_url @callback_url end |
#name ⇒ String
TODO: Write general description for this method
9 10 11 |
# File 'lib/message_media_conversations/models/configure_account_request.rb', line 9 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/message_media_conversations/models/configure_account_request.rb', line 30 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. name = hash['name'] callback_url = hash['callback_url'] # Create object from extracted values. ConfigureAccountRequest.new(name, callback_url) end |
.names ⇒ Object
A mapping from model property names to API property names.
16 17 18 19 20 21 |
# File 'lib/message_media_conversations/models/configure_account_request.rb', line 16 def self.names @_hash = {} if @_hash.nil? @_hash['name'] = 'name' @_hash['callback_url'] = 'callback_url' @_hash end |