class ConcourseObjects::Resources::Telegram::OutParams
Public Class Methods
new(options = {}) { |this, options| ... }
click to toggle source
Calls superclass method
ConcourseObjects::Object::new
# File lib/concourse-objects/resources/telegram.rb, line 25 def initialize(options = {}) super(options) do |this, options| raise KeyError, "#{self.class.inspect} requires one of (message, (chat_id, text))" unless (this.message? or (this.chat_id? and this.text?)) yield this, options if block_given? end end