Skip to content

Commit 0b5afb2

Browse files
Alex TharpAlex Tharp
authored andcommitted
Merge pull request #10 from cortex-cms/develop
v0.4.3 Release
2 parents 4f17415 + 30ea66e commit 0b5afb2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

lib/cortex/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'cortex/resource'
44
require 'cortex/posts'
55
require 'cortex/users'
6+
require 'cortex/webpages'
67
require 'cortex/result'
78
require 'oauth2'
89
require 'cortex/exceptions'
@@ -28,6 +29,7 @@ def initialize(hasharg)
2829
end
2930
@posts = Cortex::Posts.new(self)
3031
@users = Cortex::Users.new(self)
32+
@webpages = Cortex::Webpages.new(self)
3133
end
3234

3335
def get_cc_token

lib/cortex/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Cortex
2-
VERSION = '0.4.2'
2+
VERSION = '0.4.3'
33
end

lib/cortex/webpages.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module Cortex
2+
class Webpages < Cortex::Resource
3+
def get_feed(id)
4+
client.get("/webpages/feed/#{id}")
5+
end
6+
end
7+
end

0 commit comments

Comments
 (0)