Class: PCPServerSDK::Models::CustomerAccount
- Inherits:
-
Object
- Object
- PCPServerSDK::Models::CustomerAccount
- Defined in:
- lib/PCP-server-Ruby-SDK/models/customer_account.rb
Overview
Object containing data related to the account the customer has with you.
Instance Attribute Summary collapse
-
#create_date ⇒ Object
Creation date and time of the customer account in ISO 8601 format (UTC).
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CustomerAccount
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ CustomerAccount
Initializes the object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 32 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `CustomerAccount` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `CustomerAccount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'create_date') self.create_date = attributes[:'create_date'] end end |
Instance Attribute Details
#create_date ⇒ Object
Creation date and time of the customer account in ISO 8601 format (UTC).
9 10 11 |
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 9 def create_date @create_date end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
19 20 21 |
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 19 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
12 13 14 15 16 |
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 12 def self.attribute_map { :'create_date' => :'createDate' } end |
.openapi_types ⇒ Object
Attribute type mapping.
24 25 26 27 28 |
# File 'lib/PCP-server-Ruby-SDK/models/customer_account.rb', line 24 def self.openapi_types { :'create_date' => :'Time' } end |