Class: Vatsense::Models::CountryListProvincesResponse::Data
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/vatsense/models/country_list_provinces_response.rb,
sig/vatsense/models/country_list_provinces_response.rbs
Defined Under Namespace
Modules: Object
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#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
optional :country_code, String
optional :object, enum: -> { Vatsense::Models::CountryListProvincesResponse::Data::Object }
optional :province_code, String
optional :province_name, String
module Object
extend Vatsense::Internal::Type::Enum
PROVINCE = :province
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
|
Instance Method Details
#to_hash ⇒ {
71
|
# File 'sig/vatsense/models/country_list_provinces_response.rbs', line 71
def to_hash: -> {
|