Module: RecordMedium

Defined in:
lib/record_medium.rb,
lib/record_medium/export.rb,
lib/record_medium/import.rb,
lib/record_medium/version.rb

Overview

RecordMedium API public methods

Defined Under Namespace

Classes: Export, Import

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.add(key: nil, data: nil) ⇒ Object



11
12
13
# File 'lib/record_medium.rb', line 11

def self.add(key: nil, data: nil)
  Import.new(key).add(data)
end

.iframe(data) ⇒ Object



19
20
21
# File 'lib/record_medium.rb', line 19

def self.iframe(data)
  Export.new(data).iframe
end

.set(key: nil, data: nil) ⇒ Object



15
16
17
# File 'lib/record_medium.rb', line 15

def self.set(key: nil, data: nil)
  Import.new(key).set(data)
end

.url(data) ⇒ Object



23
24
25
# File 'lib/record_medium.rb', line 23

def self.url(data)
  Export.new(data).url
end