Class: Io::Flow::V0::Models::RepeatHourly
- Inherits:
-
RepeatSchedule
- Object
- RepeatSchedule
- Io::Flow::V0::Models::RepeatHourly
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
Attributes inherited from RepeatSchedule
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ RepeatHourly
constructor
A new instance of RepeatHourly.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from RepeatSchedule
Constructor Details
#initialize(incoming = {}) ⇒ RepeatHourly
Returns a new instance of RepeatHourly.
63641 63642 63643 63644 63645 63646 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 63641 def initialize(incoming={}) super(:discriminator => RepeatSchedule::Types::REPEAT_HOURLY) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:interval], 'RepeatHourly') @interval = HttpClient::Preconditions.assert_class('interval', opts.delete(:interval), Integer) end |
Instance Attribute Details
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
63639 63640 63641 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 63639 def interval @interval end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
63652 63653 63654 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 63652 def copy(incoming={}) RepeatHourly.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
63656 63657 63658 63659 63660 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 63656 def subtype_to_hash { :interval => interval } end |
#to_json ⇒ Object
63648 63649 63650 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 63648 def to_json JSON.dump(to_hash) end |