Class: Stigg::Models::V1::Credits::GrantListResponse::Cost
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::Credits::GrantListResponse::Cost
- Defined in:
- lib/stigg/models/v1/credits/grant_list_response.rb,
sig/stigg/models/v1/credits/grant_list_response.rbs
Overview
Instance Attribute Summary collapse
-
#amount ⇒ Float
The cost amount.
-
#currency ⇒ String
The currency code.
Instance Method Summary collapse
-
#initialize ⇒ Cost
constructor
A new instance of Cost.
- #to_hash ⇒ { amount: Float, currency: String }
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 ⇒ Cost
Returns a new instance of Cost.
133 |
# File 'sig/stigg/models/v1/credits/grant_list_response.rbs', line 133
def initialize: (amount: Float, currency: String) -> void
|
Instance Attribute Details
#amount ⇒ Float
The cost amount
204 |
# File 'lib/stigg/models/v1/credits/grant_list_response.rb', line 204 required :amount, Float |
#currency ⇒ String
The currency code
210 |
# File 'lib/stigg/models/v1/credits/grant_list_response.rb', line 210 required :currency, String |
Instance Method Details
#to_hash ⇒ { amount: Float, currency: String }
135 |
# File 'sig/stigg/models/v1/credits/grant_list_response.rbs', line 135
def to_hash: -> { amount: Float, currency: String }
|