Class: Icalendar::Values::Binary

Inherits:
Icalendar::Value show all
Defined in:
lib/icalendar/values/binary.rb

Constant Summary

Constants inherited from Icalendar::Value

Icalendar::Value::VALUE_TYPE_GSUB_REGEX_1, Icalendar::Value::VALUE_TYPE_GSUB_REGEX_2

Instance Attribute Summary

Attributes inherited from Icalendar::Value

#ical_params

Instance Method Summary collapse

Methods inherited from Icalendar::Value

#ical_param, #initialize, #to_ical, #value, value_type, #value_type

Constructor Details

This class inherits a constructor from Icalendar::Value

Instance Method Details

#params_icalObject



10
11
12
13
14
# File 'lib/icalendar/values/binary.rb', line 10

def params_ical
  ical_param :value, 'BINARY'
  ical_param :encoding, 'BASE64'
  super
end

#value_icalObject



16
17
18
19
20
21
22
# File 'lib/icalendar/values/binary.rb', line 16

def value_ical
  if base64?
    value
  else
    Base64.strict_encode64 value
  end
end