Class: Ladyboy::Parser
- Inherits:
-
Object
- Object
- Ladyboy::Parser
- Defined in:
- lib/ladyboy/parser.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#gender ⇒ Object
(also: #sex)
readonly
Returns the value of attribute gender.
Instance Method Summary collapse
-
#initialize(full_name) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(full_name) ⇒ Parser
Returns a new instance of Parser.
6 7 8 9 |
# File 'lib/ladyboy/parser.rb', line 6 def initialize(full_name) @full_name = full_name parse! end |
Instance Attribute Details
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/ladyboy/parser.rb', line 3 def first_name @first_name end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
3 4 5 |
# File 'lib/ladyboy/parser.rb', line 3 def full_name @full_name end |
#gender ⇒ Object (readonly) Also known as: sex
Returns the value of attribute gender.
3 4 5 |
# File 'lib/ladyboy/parser.rb', line 3 def gender @gender end |