Class: KDL::Types::Email
- Defined in:
- lib/kdl/types/email.rb,
lib/kdl/types/email/parser.rb
Direct Known Subclasses
Defined Under Namespace
Constant Summary
Constants inherited from Value
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#local ⇒ Object
readonly
Returns the value of attribute local.
Attributes inherited from Value
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value, local:, domain:, **kwargs) ⇒ Email
constructor
A new instance of Email.
Methods inherited from Value
#as_type, from, #stringify_value, #to_s
Constructor Details
#initialize(value, local:, domain:, **kwargs) ⇒ Email
Returns a new instance of Email.
8 9 10 11 12 |
# File 'lib/kdl/types/email.rb', line 8 def initialize(value, local:, domain:, **kwargs) super(value, **kwargs) @local = local @domain = domain end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
6 7 8 |
# File 'lib/kdl/types/email.rb', line 6 def domain @domain end |
#local ⇒ Object (readonly)
Returns the value of attribute local.
6 7 8 |
# File 'lib/kdl/types/email.rb', line 6 def local @local end |