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.
108 109 110 |
# File 'lib/x2ch.rb', line 108 def initialize(name, mail, , body) @name, @mail, @metadata, @body = name, mail, , body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
106 107 108 |
# File 'lib/x2ch.rb', line 106 def body @body end |
#mail ⇒ Object
Returns the value of attribute mail.
106 107 108 |
# File 'lib/x2ch.rb', line 106 def mail @mail end |
#metadata ⇒ Object
Returns the value of attribute metadata.
106 107 108 |
# File 'lib/x2ch.rb', line 106 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
106 107 108 |
# File 'lib/x2ch.rb', line 106 def name @name end |