Class: SunSign

Inherits:
Object
  • Object
show all
Defined in:
lib/aztro_cli/sunsign.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject

Returns the value of attribute color.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def color
  @color
end

#compatibilityObject

Returns the value of attribute compatibility.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def compatibility
  @compatibility
end

#current_dateObject

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_rangeObject

Returns the value of attribute date_range.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def date_range
  @date_range
end

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def description
  @description
end

#lucky_numberObject

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_timeObject

Returns the value of attribute lucky_time.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def lucky_time
  @lucky_time
end

#moodObject

Returns the value of attribute mood.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def mood
  @mood
end

#sign_nameObject

Returns the value of attribute sign_name.



2
3
4
# File 'lib/aztro_cli/sunsign.rb', line 2

def sign_name
  @sign_name
end