Class: Neuron::Schema::BlockedUserAgent
- Inherits:
-
Object
- Object
- Neuron::Schema::BlockedUserAgent
show all
- Includes:
- Common
- Defined in:
- lib/neuron-client/schema/blocked_user_agent.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
17
18
19
20
21
22
23
|
# File 'lib/neuron-client/schema/blocked_user_agent.rb', line 17
def create
@@create ||=
object_type("blocked_user_agent",
:description => description(:required => false),
:user_agent => user_agent
)
end
|
8
9
10
11
12
13
14
15
|
# File 'lib/neuron-client/schema/blocked_user_agent.rb', line 8
def index
@@index ||=
set_of(object_type("blocked_user_agent",
:id => id,
:description => description,
:user_agent => user_agent
))
end
|
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/neuron-client/schema/blocked_user_agent.rb', line 25
def show
@@show ||=
object_type("blocked_user_agent",
:id => id,
:description => description,
:user_agent => user_agent,
:created_at => datetime,
:updated_at => datetime
)
end
|
36
37
38
39
40
41
42
43
|
# File 'lib/neuron-client/schema/blocked_user_agent.rb', line 36
def update
@@update ||=
object_type("blocked_user_agent",
:id => id,
:description => description(:required => false),
:user_agent => user_agent(:required => false)
)
end
|