Class: MethodRuby::Models::Address
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MethodRuby::Models::Address
- Defined in:
- lib/method_ruby/models/address.rb
Instance Attribute Summary collapse
- #city ⇒ String?
-
#line1 ⇒ String?
Street address line 1.
-
#line2 ⇒ String?
Street address line 2.
- #state ⇒ String?
- #zip ⇒ String?
Instance Method Summary collapse
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(city: nil, line1: nil, line2: nil, state: nil, zip: nil) ⇒ Object
|
|
# File 'lib/method_ruby/models/address.rb', line 33
|
Instance Attribute Details
#city ⇒ String?
9 |
# File 'lib/method_ruby/models/address.rb', line 9 optional :city, String, nil?: true |
#line1 ⇒ String?
Street address line 1
15 |
# File 'lib/method_ruby/models/address.rb', line 15 optional :line1, String, nil?: true |
#line2 ⇒ String?
Street address line 2
21 |
# File 'lib/method_ruby/models/address.rb', line 21 optional :line2, String, nil?: true |
#state ⇒ String?
26 |
# File 'lib/method_ruby/models/address.rb', line 26 optional :state, String, nil?: true |
#zip ⇒ String?
31 |
# File 'lib/method_ruby/models/address.rb', line 31 optional :zip, String, nil?: true |