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.



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

#bodyObject

Returns the value of attribute body.



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

def body
  @body
end

#mailObject

Returns the value of attribute mail.



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

def mail
  @mail
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end