Class: Talk

Inherits:
Object
  • Object
show all
Defined in:
lib/papercall/models/talk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_hash) ⇒ Talk

Returns a new instance of Talk.



5
6
7
8
9
10
11
12
# File 'lib/papercall/models/talk.rb', line 5

def initialize(json_hash)
  @title = json_hash[:title]
  @description = json_hash[:description]
  @notes = json_hash[:notes]
  @abstract = json_hash[:abstract]
  @audience_level = json_hash[:audience_level]
  @talk_format = json_hash[:talk_format]
end

Instance Attribute Details

#abstractObject (readonly)

Returns the value of attribute abstract.



3
4
5
# File 'lib/papercall/models/talk.rb', line 3

def abstract
  @abstract
end

#audience_levelObject (readonly)

Returns the value of attribute audience_level.



3
4
5
# File 'lib/papercall/models/talk.rb', line 3

def audience_level
  @audience_level
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/papercall/models/talk.rb', line 3

def description
  @description
end

#notesObject (readonly)

Returns the value of attribute notes.



3
4
5
# File 'lib/papercall/models/talk.rb', line 3

def notes
  @notes
end

#talk_formatObject (readonly)

Returns the value of attribute talk_format.



3
4
5
# File 'lib/papercall/models/talk.rb', line 3

def talk_format
  @talk_format
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/papercall/models/talk.rb', line 3

def title
  @title
end