Class: Talk
- Inherits:
-
Object
- Object
- Talk
- Defined in:
- lib/papercall/models/talk.rb
Instance Attribute Summary collapse
-
#abstract ⇒ Object
readonly
Returns the value of attribute abstract.
-
#audience_level ⇒ Object
readonly
Returns the value of attribute audience_level.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#talk_format ⇒ Object
readonly
Returns the value of attribute talk_format.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(json_hash) ⇒ Talk
constructor
A new instance of Talk.
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
#abstract ⇒ Object (readonly)
Returns the value of attribute abstract.
3 4 5 |
# File 'lib/papercall/models/talk.rb', line 3 def abstract @abstract end |
#audience_level ⇒ Object (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 |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/papercall/models/talk.rb', line 3 def description @description end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
3 4 5 |
# File 'lib/papercall/models/talk.rb', line 3 def notes @notes end |
#talk_format ⇒ Object (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 |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/papercall/models/talk.rb', line 3 def title @title end |