Sha256: ef189268fafc16fc40bb27a9f9f85e574d78e8b724c1f4d21f0c02b70aeb58dc

Contents?: true

Size: 734 Bytes

Versions: 6

Compression:

Stored size: 734 Bytes

Contents

require "cure_line/version"
require "hashie"

module CureLine
  autoload :Config,          "cure_line/config"
  autoload :Mash,            "cure_line/mash"
  autoload :Post,            "cure_line/post"
  autoload :ResourceMethods, "cure_line/resource_methods"
  autoload :TimeMethods,     "cure_line/time_methods"
  autoload :User,            "cure_line/user"

  # @param user_id [String]
  #
  # @return [CureLine::User]
  #
  # @example
  #   # read https://timeline.line.me/user/_dYbbV3vmaJrvqBoV5ZlpCbPN2CWUZdDQayBvjBE
  #   user = CureLine.user("_dYbbV3vmaJrvqBoV5ZlpCbPN2CWUZdDQayBvjBE")
  def self.user(user_id)
    User.new(user_id)
  end

  # @return [CureLine::Config]
  def self.config
    @config ||= Config.new
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cure_line-1.0.1 lib/cure_line.rb
cure_line-1.0.0 lib/cure_line.rb
cure_line-0.1.3 lib/cure_line.rb
cure_line-0.1.2 lib/cure_line.rb
cure_line-0.1.1 lib/cure_line.rb
cure_line-0.1.0 lib/cure_line.rb