You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class Forum::Memos::GetService < Forum::ClientService
- attr_reader :memo_id
-
- def initialize(memo_id)
- @memo_id = memo_id
- end
-
- def call
- response = get(url)
- code, message, body = render_response(response)
- if code == 200 && body["status"] == 0
- return body
- else
- return nil
- end
- end
-
- def url
- "/memos/#{memo_id}.json?only_data=true".freeze
- end
- end
|