Module: CureLine

Defined in:
lib/cure_line.rb,
lib/cure_line/mash.rb,
lib/cure_line/post.rb,
lib/cure_line/user.rb,
lib/cure_line/config.rb,
lib/cure_line/version.rb,
lib/cure_line/time_methods.rb,
lib/cure_line/resource_methods.rb

Defined Under Namespace

Modules: ResourceMethods, TimeMethods Classes: Config, Mash, Post, User

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.configCureLine::Config

Returns:



24
25
26
# File 'lib/cure_line.rb', line 24

def self.config
  @config ||= Config.new
end

.user(user_id) ⇒ CureLine::User

Examples:

# read https://timeline.line.me/user/_dYbbV3vmaJrvqBoV5ZlpCbPN2CWUZdDQayBvjBE
user = CureLine.user("_dYbbV3vmaJrvqBoV5ZlpCbPN2CWUZdDQayBvjBE")

Parameters:

  • user_id (String)

Returns:



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

def self.user(user_id)
  User.new(user_id)
end