Class: Neuron::Schema::BlockedReferer

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/neuron-client/schema/blocked_referer.rb

Constant Summary collapse

SCHEMA =
self.new

Instance Method Summary collapse

Methods included from Common

#choice_of, #datetime, #errors, #id, included, #integer, #merged, #missing_or_null, #missing_or_null_or_empty_hash, #nonnull_string, #null, #nullable_string, #object_type, #object_type_or_null, #one_of, #parameters, #priority, #set_of, #slug, #timezone, #url, #uuid, #weight, #yes_no

Instance Method Details

#createObject



16
17
18
19
20
21
# File 'lib/neuron-client/schema/blocked_referer.rb', line 16

def create
  @@create ||=
  object_type("blocked_referer",
    :referer => blocked_referer
  )
end

#indexObject



8
9
10
11
12
13
14
# File 'lib/neuron-client/schema/blocked_referer.rb', line 8

def index
  @@index ||=
  set_of(object_type("blocked_referer",
    :id => id,
    :referer => blocked_referer
  ))
end

#showObject



23
24
25
26
27
28
29
30
31
# File 'lib/neuron-client/schema/blocked_referer.rb', line 23

def show
  @@show ||=
  object_type("blocked_referer",
    :id => id,
    :referer => blocked_referer,
    :created_at => datetime,
    :updated_at => datetime
  )
end

#updateObject



33
34
35
36
37
38
39
# File 'lib/neuron-client/schema/blocked_referer.rb', line 33

def update
  @@update ||=
  object_type("blocked_referer",
    :id => id,
    :referer => blocked_referer
  )
end