Sha256: b636288f648382f4d496ee989681f9246ec38aa3daade359a32de5d241622258
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require "weeblycloud/cloudresource" require "weeblycloud/saveable" require "weeblycloud/deleteable" module Weeblycloud # Represents a Member resource. # https://cloud-developer.weebly.com/member.html class Member < CloudResource include Saveable include Deleteable def initialize(user_id, site_id, member_id, data = nil) @user_id = user_id.to_i @site_id = site_id.to_i @member_id = member_id.to_i @endpoint = "user/#{@user_id}/site/#{@site_id}/member/#{@member_id}" super(data) end # Returns the member_id def id @member_id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
weeblycloud-1.0.0 | lib/weeblycloud/member.rb |