Class: Rafflesia::ServerlessWorkloadProfileListData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ServerlessWorkloadProfileListData
- Defined in:
- lib/rafflesia/cache/serverless_workload_profile_list_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ profiles: :profiles, row_count: :row_count }.freeze
Instance Attribute Summary collapse
-
#profiles ⇒ Object
Returns the value of attribute profiles.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ ServerlessWorkloadProfileListData
constructor
A new instance of ServerlessWorkloadProfileListData.
Constructor Details
#initialize(json) ⇒ ServerlessWorkloadProfileListData
Returns a new instance of ServerlessWorkloadProfileListData.
17 18 19 20 21 22 |
# File 'lib/rafflesia/cache/serverless_workload_profile_list_data.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @profiles = (hash[:profiles] || []).map { |item| item ? Rafflesia::ServerlessWorkloadProfile.new(item) : nil } @row_count = hash[:row_count] end |
Instance Attribute Details
#profiles ⇒ Object
Returns the value of attribute profiles.
13 14 15 |
# File 'lib/rafflesia/cache/serverless_workload_profile_list_data.rb', line 13 def profiles @profiles end |
#row_count ⇒ Object
Returns the value of attribute row_count.
13 14 15 |
# File 'lib/rafflesia/cache/serverless_workload_profile_list_data.rb', line 13 def row_count @row_count end |