Class: Threads::API::UnpublishedThread

Inherits:
Object
  • Object
show all
Defined in:
lib/threads/api/thread.rb

Direct Known Subclasses

ThreadStatus

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ UnpublishedThread

Returns a new instance of UnpublishedThread.



46
47
48
# File 'lib/threads/api/thread.rb', line 46

def initialize(json)
  @id = json["id"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



44
45
46
# File 'lib/threads/api/thread.rb', line 44

def id
  @id
end