Class: Bullet

Inherits:
Header show all
Defined in:
lib/classes/bullet.rb

Instance Attribute Summary collapse

Attributes inherited from Header

#clean_profession

Instance Method Summary collapse

Methods inherited from Header

#convert_month_to_number, #convert_season_to_number, #current?, #duration, #end_date_exists?, #end_month, #end_time_number, #end_time_text?, #end_year, #get_professions, #just_city, #just_state, #remove_all_but_profession, #remove_city, #remove_date, #remove_institution, #season?, #split_cities, #split_date, #start_month, #start_time_number, #start_time_text?, #start_year

Methods inherited from Classifide

#address?, #children, #city?, #date?, #email?, #institution?, #many_words?, #more_words_than?, #name?, #phone?, #profession?, #section?, #set_new_value, #type?, #verbs?

Constructor Details

#initialize(classifide, header) ⇒ Bullet



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/classes/bullet.rb', line 5

def initialize(classifide, header)

	both_classifications.each do |classification|
		instance_variable_set(("@" + classification).to_sym, header.send(classification))
	end

	@header_text = @text
	@header_id = @id
	
	@text = classifide.text
	@id = classifide.id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/classes/bullet.rb', line 3

def id
  @id
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/classes/bullet.rb', line 3

def text
  @text
end