class Moogle::BlogTarget
Public Instance Methods
validate_options()
click to toggle source
# File lib/moogle/models/blog_target.rb, line 11 def validate_options uri = Addressable::URI.parse options['rpc_uri'] return false, 'options rpc_uri not set' if uri.nil? return false, 'options rpc_uri must be absolute URI' if uri.relative? uri = Addressable::URI.parse options['blog_uri'] return false, 'options blog_uri not set' if uri.nil? return false, 'options blog_uri must be absolute URI' if uri.relative? return false, 'options blog_id is blank' if options['blog_id'].blank? return false, 'options username is blank' if options['username'].blank? return false, 'options password is blank' if options['password'].blank? return false, 'options publish_immediately is blank' if( options['publish_immediately'].blank?) return true end