Class: X2CH::Post
- Inherits:
-
Object
- Object
- X2CH::Post
- Defined in:
- lib/x2ch.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#mail ⇒ Object
Returns the value of attribute mail.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, mail, metadata, body) ⇒ Post
constructor
A new instance of Post.
Constructor Details
#initialize(name, mail, metadata, body) ⇒ Post
Returns a new instance of Post.
109 110 111 |
# File 'lib/x2ch.rb', line 109 def initialize(name, mail, , body) @name, @mail, @metadata, @body = name, mail, , body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
107 108 109 |
# File 'lib/x2ch.rb', line 107 def body @body end |
#mail ⇒ Object
Returns the value of attribute mail.
107 108 109 |
# File 'lib/x2ch.rb', line 107 def mail @mail end |
#metadata ⇒ Object
Returns the value of attribute metadata.
107 108 109 |
# File 'lib/x2ch.rb', line 107 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
107 108 109 |
# File 'lib/x2ch.rb', line 107 def name @name end |