Class: ShellCardManagementApIs::UpdateBundleResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::UpdateBundleResponse
- Defined in:
- lib/shell_card_management_ap_is/models/update_bundle_response.rb
Overview
UpdateBundleResponse Model.
Instance Attribute Summary collapse
-
#day_time_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method.
-
#location_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method.
-
#product_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method.
-
#request_action_status ⇒ ErrorStatus
TODO: Write general description for this method.
-
#usage_restriction_status ⇒ ErrorStatus
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.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(request_action_status = SKIP, day_time_restriction_status = SKIP, location_restriction_status = SKIP, product_restriction_status = SKIP, usage_restriction_status = SKIP) ⇒ UpdateBundleResponse
constructor
A new instance of UpdateBundleResponse.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(request_action_status = SKIP, day_time_restriction_status = SKIP, location_restriction_status = SKIP, product_restriction_status = SKIP, usage_restriction_status = SKIP) ⇒ UpdateBundleResponse
Returns a new instance of UpdateBundleResponse.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 59 def initialize(request_action_status = SKIP, day_time_restriction_status = SKIP, location_restriction_status = SKIP, product_restriction_status = SKIP, usage_restriction_status = SKIP) @request_action_status = request_action_status unless request_action_status == SKIP unless day_time_restriction_status == SKIP @day_time_restriction_status = day_time_restriction_status end unless location_restriction_status == SKIP @location_restriction_status = location_restriction_status end unless product_restriction_status == SKIP @product_restriction_status = product_restriction_status end @usage_restriction_status = usage_restriction_status unless usage_restriction_status == SKIP end |
Instance Attribute Details
#day_time_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method
18 19 20 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 18 def day_time_restriction_status @day_time_restriction_status end |
#location_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method
22 23 24 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 22 def location_restriction_status @location_restriction_status end |
#product_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method
26 27 28 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 26 def product_restriction_status @product_restriction_status end |
#request_action_status ⇒ ErrorStatus
TODO: Write general description for this method
14 15 16 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 14 def request_action_status @request_action_status end |
#usage_restriction_status ⇒ ErrorStatus
TODO: Write general description for this method
30 31 32 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 30 def usage_restriction_status @usage_restriction_status end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 81 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. request_action_status = ErrorStatus.from_hash(hash['RequestActionStatus']) if hash['RequestActionStatus'] day_time_restriction_status = ErrorStatus.from_hash(hash['DayTimeRestrictionStatus']) if hash['DayTimeRestrictionStatus'] location_restriction_status = ErrorStatus.from_hash(hash['LocationRestrictionStatus']) if hash['LocationRestrictionStatus'] product_restriction_status = ErrorStatus.from_hash(hash['ProductRestrictionStatus']) if hash['ProductRestrictionStatus'] usage_restriction_status = ErrorStatus.from_hash(hash['UsageRestrictionStatus']) if hash['UsageRestrictionStatus'] # Create object from extracted values. UpdateBundleResponse.new(request_action_status, day_time_restriction_status, location_restriction_status, product_restriction_status, usage_restriction_status) end |
.names ⇒ Object
A mapping from model property names to API property names.
33 34 35 36 37 38 39 40 41 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 33 def self.names @_hash = {} if @_hash.nil? @_hash['request_action_status'] = 'RequestActionStatus' @_hash['day_time_restriction_status'] = 'DayTimeRestrictionStatus' @_hash['location_restriction_status'] = 'LocationRestrictionStatus' @_hash['product_restriction_status'] = 'ProductRestrictionStatus' @_hash['usage_restriction_status'] = 'UsageRestrictionStatus' @_hash end |
.nullables ⇒ Object
An array for nullable fields
55 56 57 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 55 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
44 45 46 47 48 49 50 51 52 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 44 def self.optionals %w[ request_action_status day_time_restriction_status location_restriction_status product_restriction_status usage_restriction_status ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
114 115 116 117 118 119 120 121 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 114 def inspect class_name = self.class.name.split('::').last "<#{class_name} request_action_status: #{@request_action_status.inspect},"\ " day_time_restriction_status: #{@day_time_restriction_status.inspect},"\ " location_restriction_status: #{@location_restriction_status.inspect},"\ " product_restriction_status: #{@product_restriction_status.inspect},"\ " usage_restriction_status: #{@usage_restriction_status.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
105 106 107 108 109 110 111 |
# File 'lib/shell_card_management_ap_is/models/update_bundle_response.rb', line 105 def to_s class_name = self.class.name.split('::').last "<#{class_name} request_action_status: #{@request_action_status},"\ " day_time_restriction_status: #{@day_time_restriction_status}, location_restriction_status:"\ " #{@location_restriction_status}, product_restriction_status:"\ " #{@product_restriction_status}, usage_restriction_status: #{@usage_restriction_status}>" end |