enlight 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5a7aa00927fd412055b774e12578acb29650b1d58cc8e94eb01fd0fea1ce59b
4
- data.tar.gz: c110637cabfe3071be5954461481c7a86f4064f64ec46e5588b4ab950e572ecc
3
+ metadata.gz: a3558f6de853f5c8b9c1e3e3992182c1d9300762131cfc7c9c4d5cb2e5a7279a
4
+ data.tar.gz: a490e63da5308bd77814d8e21ac1226c3734573d6072e1103bbe7eeaac15d6e4
5
5
  SHA512:
6
- metadata.gz: 5745ab473b8cd5711e969a3be987ea088636eb96ad2d01fd544a95e3e55b7afbb01aa8d25c8cf6509b430bdf7c9d5ac6fbb73e0b6c55958bd016a1110a3e99bf
7
- data.tar.gz: d20fdca27d400cb9738484a422b508ad63835edb5eec08d750bd98f406742ca0c66dea8b3bb069215f94b65d72efd2dbc082c9f117145538649b25d8c7f185c3
6
+ metadata.gz: f46c94c7784d79e099d1f0eaeba312c219cfc89bc53a909e24559694ee16727765cce6512ecd46772172d8291e793852c1bae353db9e910895cda1ed6605fb2f
7
+ data.tar.gz: 74aa6a15d13200e3ba0a86b2bac5add58a8ac6036baaf7c75b86b95d2c4779b0d631a3661cbdad16bd39cb113d12ea5839d04de30ee641406d60b48cac219287
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enlight (0.1.3)
4
+ enlight (0.2.0)
5
5
  activesupport (~> 5.0)
6
6
 
7
7
  GEM
@@ -4,7 +4,7 @@ module Enlight
4
4
  attr_accessor :id
5
5
 
6
6
  def initialize(attributes={})
7
- attributes.each {|k,v| send("#{k}=", v)}
7
+ attributes.each {|k,v| send("#{k}=", v) if respond_to?(k)}
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,6 @@
1
+ module Enlight
2
+ module Requests
3
+ class GetClubMembershipPool < Enlight::Requests::Request
4
+ end
5
+ end
6
+ end
@@ -6,8 +6,8 @@ module Enlight
6
6
  class Request
7
7
  attr_accessor :id
8
8
 
9
- def initialize(attributes={})
10
- attributes.each {|k,v| send("#{k}=", v)}
9
+ def initialize(attributes = {})
10
+ attributes.each {|k,v| send("#{k}=", v) if respond_to?(k)}
11
11
  end
12
12
 
13
13
  def fetch
@@ -8,7 +8,7 @@ module Enlight
8
8
 
9
9
  def initialize(attributes={})
10
10
  attributes.deep_transform_keys! { |k| k.to_s.underscore }
11
- attributes.each {|k,v| send("#{k}=", v) }
11
+ attributes.each {|k,v| send("#{k}=", v) if respond_to?(k) }
12
12
  end
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Enlight
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Orahood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-01 00:00:00.000000000 Z
11
+ date: 2019-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -111,7 +111,6 @@ files:
111
111
  - bin/console
112
112
  - bin/setup
113
113
  - enlight.gemspec
114
- - get_club_membership_pool.rb
115
114
  - lib/enlight.rb
116
115
  - lib/enlight/models.rb
117
116
  - lib/enlight/models/activity_type.rb
@@ -170,6 +169,7 @@ files:
170
169
  - lib/enlight/requests/get_class_enrollment_by_external_id.rb
171
170
  - lib/enlight/requests/get_club_membership.rb
172
171
  - lib/enlight/requests/get_club_membership_by_external_id.rb
172
+ - lib/enlight/requests/get_club_membership_pool.rb
173
173
  - lib/enlight/requests/get_company.rb
174
174
  - lib/enlight/requests/get_course.rb
175
175
  - lib/enlight/requests/get_course_assignment.rb
@@ -1,6 +0,0 @@
1
- module Enlight
2
- module Requests
3
- class GetClubMembershipPool
4
- end
5
- end
6
- end