Class: X2CH::Post

Inherits:
Object
  • Object
show all
Defined in:
lib/x2ch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



107
108
109
# File 'lib/x2ch.rb', line 107

def body
  @body
end

#mailObject

Returns the value of attribute mail.



107
108
109
# File 'lib/x2ch.rb', line 107

def mail
  @mail
end

#metadataObject

Returns the value of attribute metadata.



107
108
109
# File 'lib/x2ch.rb', line 107

def 
  @metadata
end

#nameObject

Returns the value of attribute name.



107
108
109
# File 'lib/x2ch.rb', line 107

def name
  @name
end