Class: SonyCameraRemote::Camera::ApplicationInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/sony_camera_remote/camera.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_versionObject

Returns the value of attribute api_version

Returns:

  • (Object)

    the current value of api_version



12
13
14
# File 'lib/sony_camera_remote/camera.rb', line 12

def api_version
  @api_version
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/sony_camera_remote/camera.rb', line 12

def name
  @name
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/sony_camera_remote/camera.rb', line 13

def to_s
  "#{name} v#{api_version}"
end