Sha256: 237c7346f2b7a2640eedfd773dd0f42b72fd95f2fc117e4faae2312486ab6428
Contents?: true
Size: 443 Bytes
Versions: 5
Compression:
Stored size: 443 Bytes
Contents
class UserService < Acfs::Service self.base_url = 'http://users.example.org' end class CommentService < Acfs::Service self.base_url = 'http://comments.example.org' end class MyUser include Acfs::Model service UserService, path: 'users' attribute :id, :integer attribute :name, :string, default: 'Anon' attribute :age, :integer end class Comment include Acfs::Model service CommentService attribute :text, :string end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
acfs-0.6.0 | spec/support/service.rb |
acfs-0.5.1 | spec/support/service.rb |
acfs-0.5.0 | spec/support/service.rb |
acfs-0.4.0 | spec/support/service.rb |
acfs-0.3.0 | spec/support/service.rb |