Class: ConferenceTalk

Inherits:
Struct
  • Object
show all
Defined in:
lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bioObject

Returns the value of attribute bio

Returns:

  • (Object)

    the current value of bio



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def bio
  @bio
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def id
  @id
end

#speakerObject

Returns the value of attribute speaker

Returns:

  • (Object)

    the current value of speaker



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def speaker
  @speaker
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def time
  @time
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



1
2
3
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 1

def updated_at
  @updated_at
end

Instance Method Details

#resource_pathObject



2
3
4
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 2

def resource_path
  "/conference_talks/#{id}"
end

#to_sObject



6
7
8
# File 'lib/glimmer-dsl-web/samples/hello/hello_page_component_link/models/conference_talk.rb', line 6

def to_s
  "#{time}: #{title} by #{speaker})"
end