Class: Posmoni::Moderation

Inherits:
Object
  • Object
show all
Includes:
Interface
Defined in:
lib/posmoni/moderation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Interface

#all, #create, #find_by

Constructor Details

#initialize(token = nil) ⇒ Moderation

Returns a new instance of Moderation.



8
9
10
11
12
# File 'lib/posmoni/moderation.rb', line 8

def initialize(token = nil)
  @project_key = token
  @type = :moderation
  @path = 'moderations'
end

Instance Attribute Details

#project_key=(value) ⇒ Object (writeonly)

Sets the attribute project_key

Parameters:

  • value

    the value to set the attribute project_key to.



6
7
8
# File 'lib/posmoni/moderation.rb', line 6

def project_key=(value)
  @project_key = value
end