-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
905245b
commit 0c0e767
Showing
10 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Fluffy < WashOut::Type | ||
map :universe => { | ||
:name => :string, | ||
:age => :int | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class FluffyContainer < WashOut::Type | ||
type_name 'fluffy_con' | ||
map :fluffy => Fluffy | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class ProjectType < WashOut::Type | ||
map :project => { | ||
:name => :string, | ||
:description => :string, | ||
:users => [{:mail => :string }], | ||
# 'dada' => [Project] | ||
} | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class AnotherException < SOAPError | ||
|
||
attribute :ex3_name, String | ||
attribute :ex3_id, Integer | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Dir["#{File.dirname(__FILE__)}/**/*.rb"].each { |f| require f } | ||
class BaseException < AnotherException | ||
|
||
attribute :custom_attribute, String | ||
attribute :other_custom_attribute, Integer | ||
attribute :errors,Array[Integer] | ||
attribute :custom, Array[ExModel] | ||
attribute :custom2, ExModel | ||
attribute :errors_2, Array[Custom2] | ||
attribute :error, Custom2 | ||
attribute :module, NameModel | ||
attribute :geo, ValueObjectModel | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Custom2 < WashOut::SOAPError | ||
|
||
attribute :ex2_name, String | ||
attribute :ex2_id, Integer | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class ExModel | ||
include Virtus.model | ||
|
||
attribute :name, String | ||
attribute :id, Integer | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module NameMod | ||
include Virtus.module | ||
|
||
attribute :name, String | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require_relative "./name_mod" | ||
|
||
class NameModel | ||
include NameMod | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class ValueObjectModel | ||
include Virtus.value_object | ||
|
||
values do | ||
attribute :latitude, Float | ||
attribute :longitude, Float | ||
end | ||
end |