Class: Vatsense::Models::CountryListProvincesResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Vatsense::Models::CountryListProvincesResponse::Data
- Defined in:
- lib/vatsense/models/country_list_provinces_response.rb
Defined Under Namespace
Modules: Object
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(country_code: nil, object: nil, province_code: nil, province_name: nil) ⇒ Object constructor
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(country_code: nil, object: nil, province_code: nil, province_name: nil) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/vatsense/models/country_list_provinces_response.rb', line 28 class Data < Vatsense::Internal::Type::BaseModel # @!attribute country_code # # @return [String, nil] optional :country_code, String # @!attribute object # # @return [Symbol, Vatsense::Models::CountryListProvincesResponse::Data::Object, nil] optional :object, enum: -> { Vatsense::Models::CountryListProvincesResponse::Data::Object } # @!attribute province_code # # @return [String, nil] optional :province_code, String # @!attribute province_name # # @return [String, nil] optional :province_name, String # @!method initialize(country_code: nil, object: nil, province_code: nil, province_name: nil) # @param country_code [String] # @param object [Symbol, Vatsense::Models::CountryListProvincesResponse::Data::Object] # @param province_code [String] # @param province_name [String] # @see Vatsense::Models::CountryListProvincesResponse::Data#object module Object extend Vatsense::Internal::Type::Enum PROVINCE = :province # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#country_code ⇒ String?
32 |
# File 'lib/vatsense/models/country_list_provinces_response.rb', line 32 optional :country_code, String |
#object ⇒ Symbol, ...
37 |
# File 'lib/vatsense/models/country_list_provinces_response.rb', line 37 optional :object, enum: -> { Vatsense::Models::CountryListProvincesResponse::Data::Object } |
#province_code ⇒ String?
42 |
# File 'lib/vatsense/models/country_list_provinces_response.rb', line 42 optional :province_code, String |
#province_name ⇒ String?
47 |
# File 'lib/vatsense/models/country_list_provinces_response.rb', line 47 optional :province_name, String |