Class: Threads::API::UnpublishedThread
- Inherits:
-
Object
- Object
- Threads::API::UnpublishedThread
- Defined in:
- lib/threads/api/thread.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(json) ⇒ UnpublishedThread
constructor
A new instance of UnpublishedThread.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
44 45 46 |
# File 'lib/threads/api/thread.rb', line 44 def id @id end |