Module: CureLine::ResourceMethods

Included in:
Post, User
Defined in:
lib/cure_line/resource_methods.rb

Instance Method Summary collapse

Instance Method Details

#resource_url(resource_id) ⇒ Object

Raises:

  • (ArgumentError)


3
4
5
6
7
# File 'lib/cure_line/resource_methods.rb', line 3

def resource_url(resource_id)
  raise ArgumentError, "resource_id is required" unless resource_id

  "https://obs.line-scdn.net/#{resource_id}"
end