Class: Dubhe::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/dubhe/models.rb,
lib/dubhe/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#author ⇒ Object (readonly)

Returns the value of attribute author

Returns:

  • (Object) —

    the current value of author



4
5
6
# File 'lib/dubhe/models.rb', line 4

def author
  @author
end

#id ⇒ Object (readonly)

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



4
5
6
# File 'lib/dubhe/models.rb', line 4

def id
  @id
end

#parent_id ⇒ Object (readonly)

Returns the value of attribute parent_id

Returns:

  • (Object) —

    the current value of parent_id



4
5
6
# File 'lib/dubhe/models.rb', line 4

def parent_id
  @parent_id
end

#published_at ⇒ Object (readonly)

Returns the value of attribute published_at

Returns:

  • (Object) —

    the current value of published_at



4
5
6
# File 'lib/dubhe/models.rb', line 4

def published_at
  @published_at
end

#source_id ⇒ Object (readonly)

Returns the value of attribute source_id

Returns:

  • (Object) —

    the current value of source_id



4
5
6
# File 'lib/dubhe/models.rb', line 4

def source_id
  @source_id
end

#state ⇒ Object (readonly)

Returns the value of attribute state

Returns:

  • (Object) —

    the current value of state



4
5
6
# File 'lib/dubhe/models.rb', line 4

def state
  @state
end

#summary ⇒ Object (readonly)

Returns the value of attribute summary

Returns:

  • (Object) —

    the current value of summary



4
5
6
# File 'lib/dubhe/models.rb', line 4

def summary
  @summary
end

#tags ⇒ Object (readonly)

Returns the value of attribute tags

Returns:

  • (Object) —

    the current value of tags



4
5
6
# File 'lib/dubhe/models.rb', line 4

def tags
  @tags
end

#title ⇒ Object (readonly)

Returns the value of attribute title

Returns:

  • (Object) —

    the current value of title



4
5
6
# File 'lib/dubhe/models.rb', line 4

def title
  @title
end

#updated_at ⇒ Object (readonly)

Returns the value of attribute updated_at

Returns:

  • (Object) —

    the current value of updated_at



4
5
6
# File 'lib/dubhe/models.rb', line 4

def updated_at
  @updated_at
end

#url ⇒ Object (readonly)

Returns the value of attribute url

Returns:

  • (Object) —

    the current value of url



4
5
6
# File 'lib/dubhe/models.rb', line 4

def url
  @url
end

Instance Method Details

#read? ⇒ Boolean

Returns:

  • (Boolean)


12
# File 'lib/dubhe/models.rb', line 12

def read? = state == :read

#starred? ⇒ Boolean

Returns:

  • (Boolean)


13
# File 'lib/dubhe/models.rb', line 13

def starred? = state == :starred