Class: Cadenya::Types::ListProfilesResponse
- Inherits:
-
Object
- Object
- Cadenya::Types::ListProfilesResponse
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#pagination ⇒ Object
readonly
Returns the value of attribute pagination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items: nil, pagination: nil) ⇒ ListProfilesResponse
constructor
A new instance of ListProfilesResponse.
- #to_h ⇒ Object
Constructor Details
#initialize(items: nil, pagination: nil) ⇒ ListProfilesResponse
Returns a new instance of ListProfilesResponse.
2723 2724 2725 2726 |
# File 'lib/cadenya/types.rb', line 2723 def initialize(items: nil, pagination: nil) @items = items @pagination = pagination end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
2721 2722 2723 |
# File 'lib/cadenya/types.rb', line 2721 def items @items end |
#pagination ⇒ Object (readonly)
Returns the value of attribute pagination.
2721 2722 2723 |
# File 'lib/cadenya/types.rb', line 2721 def pagination @pagination end |
Class Method Details
.from_json(data) ⇒ Object
2728 2729 2730 2731 2732 2733 |
# File 'lib/cadenya/types.rb', line 2728 def self.from_json(data) new( items: data["items"].nil? ? nil : (data["items"]).map { |item| Types::Profile.from_json(item) }, pagination: data["pagination"].nil? ? nil : Types::Page.from_json(data["pagination"]), ) end |