Class: SunSign
- Inherits:
-
Object
- Object
- SunSign
- Defined in:
- lib/aztro_cli/sunsign.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#compatibility ⇒ Object
Returns the value of attribute compatibility.
-
#current_date ⇒ Object
Returns the value of attribute current_date.
-
#date_range ⇒ Object
Returns the value of attribute date_range.
-
#description ⇒ Object
Returns the value of attribute description.
-
#lucky_number ⇒ Object
Returns the value of attribute lucky_number.
-
#lucky_time ⇒ Object
Returns the value of attribute lucky_time.
-
#mood ⇒ Object
Returns the value of attribute mood.
-
#sign_name ⇒ Object
Returns the value of attribute sign_name.
Instance Method Summary collapse
-
#initialize(name, data) ⇒ SunSign
constructor
A new instance of SunSign.
Constructor Details
#initialize(name, data) ⇒ SunSign
Returns a new instance of SunSign.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/aztro_cli/sunsign.rb', line 4 def initialize(name, data) @sign_name = name @mood = data["mood"] @compatibility = data["compatibility"] @color = data["color"] @lucky_number = data["lucky_number"] @lucky_time = data["lucky_time"] @current_date = data["current_date"] @date_range = data["date_range"] @description = data["description"] end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def color @color end |
#compatibility ⇒ Object
Returns the value of attribute compatibility.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def compatibility @compatibility end |
#current_date ⇒ Object
Returns the value of attribute current_date.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def current_date @current_date end |
#date_range ⇒ Object
Returns the value of attribute date_range.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def date_range @date_range end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def description @description end |
#lucky_number ⇒ Object
Returns the value of attribute lucky_number.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def lucky_number @lucky_number end |
#lucky_time ⇒ Object
Returns the value of attribute lucky_time.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def lucky_time @lucky_time end |
#mood ⇒ Object
Returns the value of attribute mood.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def mood @mood end |
#sign_name ⇒ Object
Returns the value of attribute sign_name.
2 3 4 |
# File 'lib/aztro_cli/sunsign.rb', line 2 def sign_name @sign_name end |