Class: GrowsurfRuby::Models::Campaign::CampaignRewardListResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- GrowsurfRuby::Models::Campaign::CampaignRewardListResponse
- Defined in:
- lib/growsurf_ruby/models/campaign/campaign_reward_list_response.rb,
sig/growsurf_ruby/models/campaign/campaign_reward_list_response.rbs
Overview
Instance Attribute Summary collapse
-
#rewards ⇒ Array<GrowsurfRuby::Models::Campaign::Reward>
The program's active, visible, and enabled rewards.
Instance Method Summary collapse
-
#initialize(rewards:) ⇒ Object
constructor
The list of a program's configured rewards.
- #to_hash ⇒ { rewards: ::Array[GrowsurfRuby::Campaign::Reward] }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(rewards:) ⇒ Object
The list of a program's configured rewards.
|
|
# File 'lib/growsurf_ruby/models/campaign/campaign_reward_list_response.rb', line 14
|
Instance Attribute Details
#rewards ⇒ Array<GrowsurfRuby::Models::Campaign::Reward>
The program's active, visible, and enabled rewards.
12 |
# File 'lib/growsurf_ruby/models/campaign/campaign_reward_list_response.rb', line 12 required :rewards, -> { GrowsurfRuby::Internal::Type::ArrayOf[GrowsurfRuby::Campaign::Reward] } |
Instance Method Details
#to_hash ⇒ { rewards: ::Array[GrowsurfRuby::Campaign::Reward] }
14 |
# File 'sig/growsurf_ruby/models/campaign/campaign_reward_list_response.rbs', line 14
def to_hash: -> { rewards: ::Array[GrowsurfRuby::Campaign::Reward] }
|