Class: OsunyApi::Communication::Website::Post

Inherits:
Resource
  • Object
show all
Defined in:
lib/osuny_api/communication/website/post.rb

Instance Attribute Summary

Attributes inherited from Resource

#client, #parent

Instance Method Summary collapse

Methods inherited from Resource

#full_path, #initialize

Constructor Details

This class inherits a constructor from OsunyApi::Resource

Instance Method Details

#import(post) ⇒ Object



8
9
10
# File 'lib/osuny_api/communication/website/post.rb', line 8

def import(post)
  client.post "#{full_path}import", { post: post }
end

#pathObject



4
5
6
# File 'lib/osuny_api/communication/website/post.rb', line 4

def path
  'posts/'
end