Class: Pushybullet::Types::PushRequest

Inherits:
Object
  • Object
show all
Includes:
Concerns::FromHash, Concerns::ToHash
Defined in:
lib/pushybullet/types/push_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::ToHash

#to_hash

Methods included from Concerns::FromHash

#from_hash

Instance Attribute Details

#bodyObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def body
  @body
end

#channel_tagObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def channel_tag
  @channel_tag
end

#client_idenObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def client_iden
  @client_iden
end

#device_idenObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def device_iden
  @device_iden
end

#emailObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def email
  @email
end

#file_nameObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def file_name
  @file_name
end

#file_typeObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def file_type
  @file_type
end

#file_urlObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def file_url
  @file_url
end

#guidObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def guid
  @guid
end

#source_device_idenObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def source_device_iden
  @source_device_iden
end

#titleObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def title
  @title
end

#typeObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def type
  @type
end

#urlObject

strings



12
13
14
# File 'lib/pushybullet/types/push_request.rb', line 12

def url
  @url
end

Instance Method Details

#target=(target) ⇒ Object



16
17
18
# File 'lib/pushybullet/types/push_request.rb', line 16

def target=(target)
  instance_variable_set("@#{target.key}", target.value) unless target.nil?
end